Skip to content

Commit 2f3879e

Browse files
authored
Fix email verification request (#45227)
1 parent 36c2292 commit 2f3879e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Illuminate/Foundation/Auth/EmailVerificationRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ class EmailVerificationRequest extends FormRequest
1414
*/
1515
public function authorize()
1616
{
17-
if (! hash_equals((string) $this->route('id'),
18-
(string) $this->user()->getKey())) {
17+
if (! hash_equals((string) $this->user()->getKey(),
18+
(string) $this->route('id'))) {
1919
return false;
2020
}
2121

22-
if (! hash_equals((string) $this->route('hash'),
23-
sha1($this->user()->getEmailForVerification()))) {
22+
if (! hash_equals(sha1($this->user()->getEmailForVerification()),
23+
(string) $this->route('hash'))) {
2424
return false;
2525
}
2626

0 commit comments

Comments
 (0)