8000
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 41843c8 commit 7929409Copy full SHA for 7929409
User/PasswordUpgraderInterface.php
@@ -11,6 +11,8 @@
11
12
namespace Symfony\Component\Security\Core\User;
13
14
+use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
15
+
16
/**
17
* @author Nicolas Grekas <p@tchwork.com>
18
*/
@@ -22,6 +24,8 @@ interface PasswordUpgraderInterface
22
24
* This method should persist the new password in the user storage and update the $user object accordingly.
23
25
* Because you don't want your users not being able to log in, this method should be opportunistic:
26
* it's fine if it does nothing or if it fails without throwing any exception.
27
+ *
28
+ * @throws UnsupportedUserException if the implementation does not support that user
29
30
public function upgradePassword(PasswordAuthenticatedUserInterface $user, string $newHashedPassword): void;
31
}
0 commit comments