PasswordUpgradeBadge
in package
implements
BadgeInterface
Adds automatic password migration, if enabled and required in the password encoder.
Tags
Table of Contents
Interfaces
- BadgeInterface
- Passport badges allow to add more information to a passport (e.g. a CSRF token).
Properties
- $passwordUpgrader : mixed
- $plaintextPassword : string|null
Methods
- __construct() : mixed
- getAndErasePlaintextPassword() : string
- getPasswordUpgrader() : PasswordUpgraderInterface|null
- isResolved() : bool
- Checks if this badge is resolved by the security system.
Properties
$passwordUpgrader
private
mixed
$passwordUpgrader
$plaintextPassword
private
string|null
$plaintextPassword
= null
Methods
__construct()
public
__construct(string $plaintextPassword[, PasswordUpgraderInterface|null $passwordUpgrader = null ]) : mixed
Parameters
- $plaintextPassword : string
-
The presented password, used in the rehash
- $passwordUpgrader : PasswordUpgraderInterface|null = null
-
The password upgrader, defaults to the UserProvider if null
getAndErasePlaintextPassword()
public
getAndErasePlaintextPassword() : string
Return values
stringgetPasswordUpgrader()
public
getPasswordUpgrader() : PasswordUpgraderInterface|null
Return values
PasswordUpgraderInterface|nullisResolved()
Checks if this badge is resolved by the security system.
public
isResolved() : bool
After authentication, all badges must return true
in this method in order
for the authentication to succeed.