feat: stop keeping buspro password hash in the session

This commit is contained in:
fromme committed 2026-10-16 09:00:00 +02:00
1 parent c16e4bf53f
commit 2a554bb7bf
2 files changed
+3 -6

No files matched your search

+1 -4
View File
@@ -73,7 +73,7 @@ class BpnAuthenticator extends AbstractLoginFormAuthenticator implements Authent
$csrfToken = $request->request->getString('_csrf_token');
return new SelfValidatingPassport(
new UserBadge($email, function () use ($email, $password, $request) {
new UserBadge($email, function () use ($email, $password) {
try {
$response = $this->apiClient->getProfile($email, $password);
} catch (ApiClientException $e) {
@@ -91,9 +91,6 @@ class BpnAuthenticator extends AbstractLoginFormAuthenticator implements Authent
return null;
}
// Store BPN password in session for later use
$request->getSession()->set('bpn_password', $password);
return $user;
}),
[