Skip to content

Commit ed126aa

Browse files
committed
Merge branch 'develop'
2 parents 2739671 + 13c51ee commit ed126aa

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,10 @@ Where to redirect after a failling token verification.
296296

297297
* `$verificationErrorView = 'errors.user-verification';`
298298

299+
Name of the view returned by the getVerificationError method.
300+
301+
* `$verificationErrorView = 'errors.user-verification';`
302+
299303
Name of the default e-mail view.
300304

301305
* `$userTable = 'users';`

src/Traits/VerifiesUsers.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function getVerification(Request $request, $token)
4747
*/
4848
public function getVerificationError()
4949
{
50-
return view('laravel-user-verification::user-verification');
50+
return view($this->verificationErrorView());
5151
}
5252

5353
/**
@@ -67,6 +67,16 @@ protected function validateRequest(Request $request)
6767
}
6868
}
6969

70+
/**
71+
* Get the verification error view name.
72+
*
73+
* @return string
74+
*/
75+
protected function verificationErrorView()
76+
{
77+
return property_exists($this, 'verificationErrorView') ? $this->verificationErrorView : 'laravel-user-verification::user-verification';
78+
}
79+
7080
/**
7181
* Get the verification e-mail view name.
7282
*

0 commit comments

Comments
 (0)