Skip to content

Commit 722bf7e

Browse files
committed
Fix validation return value
1 parent 023421e commit 722bf7e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/Traits/VerifiesUsers.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ protected function validateRequest(Request $request)
6464
'email' => 'required|email'
6565
]);
6666

67-
if ($validator->fails()) {
68-
return false;
69-
}
67+
return $validator->passes();
7068
}
7169

7270
/**
@@ -76,7 +74,9 @@ protected function validateRequest(Request $request)
7674
*/
7775
protected function verificationErrorView()
7876
{
79-
return property_exists($this, 'verificationErrorView') ? $this->verificationErrorView : 'laravel-user-verification::user-verification';
77+
return property_exists($this, 'verificationErrorView')
78+
? $this->verificationErrorView
79+
: 'laravel-user-verification::user-verification';
8080
}
8181

8282
/**
@@ -86,7 +86,9 @@ protected function verificationErrorView()
8686
*/
8787
protected function verificationEmailView()
8888
{
89-
return property_exists($this, 'verificationEmailView') ? $this->verificationEmailView : 'emails.user-verification';
89+
return property_exists($this, 'verificationEmailView')
90+
? $this->verificationEmailView
91+
: 'emails.user-verification';
9092
}
9193

9294
/**

0 commit comments

Comments
 (0)