Skip to content

Commit b1f949e

Browse files
authored
Revert "Update AuthenticateSession.php (#41447)" (#41491)
This reverts commit a7b21b8.
1 parent 2748457 commit b1f949e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Illuminate/Session/Middleware/AuthenticateSession.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ public function handle($request, Closure $next)
4848
}
4949
}
5050

51-
if (! $request->session()->has('password_hash_'.$this->guard()->getDefaultDriver())) {
51+
if (! $request->session()->has('password_hash_'.$this->auth->getDefaultDriver())) {
5252
$this->storePasswordHashInSession($request);
5353
}
5454

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()) {
5656
$this->logout($request);
5757
}
5858

@@ -76,7 +76,7 @@ protected function storePasswordHashInSession($request)
7676
}
7777

7878
$request->session()->put([
79-
'password_hash_'.$this->guard()->getDefaultDriver() => $request->user()->getAuthPassword(),
79+
'password_hash_'.$this->auth->getDefaultDriver() => $request->user()->getAuthPassword(),
8080
]);
8181
}
8282

@@ -94,7 +94,7 @@ protected function logout($request)
9494

9595
$request->session()->flush();
9696

97-
throw new AuthenticationException('Unauthenticated.', [$this->guard()->getDefaultDriver()]);
97+
throw new AuthenticationException('Unauthenticated.', [$this->auth->getDefaultDriver()]);
9898
}
9999

100100
/**

0 commit comments

Comments
 (0)