File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Illuminate/Session/Middleware Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,11 @@ public function handle($request, Closure $next)
48
48
}
49
49
}
50
50
51
- if (! $ request ->session ()->has ('password_hash_ ' .$ this ->guard () ->getDefaultDriver ())) {
51
+ if (! $ request ->session ()->has ('password_hash_ ' .$ this ->auth ->getDefaultDriver ())) {
52
52
$ this ->storePasswordHashInSession ($ request );
53
53
}
54
54
55
- if ($ request ->session ()->get ('password_hash_ ' .$ this ->guard () ->getDefaultDriver ()) !== $ request ->user ()->getAuthPassword ()) {
55
+ if ($ request ->session ()->get ('password_hash_ ' .$ this ->auth ->getDefaultDriver ()) !== $ request ->user ()->getAuthPassword ()) {
56
56
$ this ->logout ($ request );
57
57
}
58
58
@@ -76,7 +76,7 @@ protected function storePasswordHashInSession($request)
76
76
}
77
77
78
78
$ request ->session ()->put ([
79
- 'password_hash_ ' .$ this ->guard () ->getDefaultDriver () => $ request ->user ()->getAuthPassword (),
79
+ 'password_hash_ ' .$ this ->auth ->getDefaultDriver () => $ request ->user ()->getAuthPassword (),
80
80
]);
81
81
}
82
82
@@ -94,7 +94,7 @@ protected function logout($request)
94
94
95
95
$ request ->session ()->flush ();
96
96
97
- throw new AuthenticationException ('Unauthenticated. ' , [$ this ->guard () ->getDefaultDriver ()]);
97
+ throw new AuthenticationException ('Unauthenticated. ' , [$ this ->auth ->getDefaultDriver ()]);
98
98
}
99
99
100
100
/**
You can’t perform that action at this time.
0 commit comments