Skip to content

Commit 5d885c1

Browse files
committed
Merge branch 'judgej-patch-1' into 2.2
2 parents 44a52e7 + 328b877 commit 5d885c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Traits/VerifiesUsers.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,15 @@ public function getVerificationError()
5656
* Validate the verification link.
5757
*
5858
* @param string $token
59-
* @return boolean
59+
* @return bool
6060
*/
6161
protected function validateRequest(Request $request)
6262
{
6363
$validator = Validator::make($request->all(), [
6464
'email' => 'required|email'
6565
]);
6666

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

7270
/**

0 commit comments

Comments
 (0)