We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36c2292 commit 2f3879eCopy full SHA for 2f3879e
src/Illuminate/Foundation/Auth/EmailVerificationRequest.php
@@ -14,13 +14,13 @@ class EmailVerificationRequest extends FormRequest
14
*/
15
public function authorize()
16
{
17
- if (! hash_equals((string) $this->route('id'),
18
- (string) $this->user()->getKey())) {
+ if (! hash_equals((string) $this->user()->getKey(),
+ (string) $this->route('id'))) {
19
return false;
20
}
21
22
- if (! hash_equals((string) $this->route('hash'),
23
- sha1($this->user()->getEmailForVerification()))) {
+ if (! hash_equals(sha1($this->user()->getEmailForVerification()),
+ (string) $this->route('hash'))) {
24
25
26
0 commit comments