UserPasswordEncoderInterface
interface UserPasswordEncoderInterface
UserPasswordEncoderInterface is the interface for the password encoder service.
Methods
| string |  encodePassword(UserInterface $user, string $plainPassword)  Encodes the plain password.  |  |
| bool | isPasswordValid(UserInterface $user, string $raw) | 
Details
string encodePassword(UserInterface $user, string $plainPassword)
Encodes the plain password.
Parameters
| UserInterface | $user | The user | 
| string | $plainPassword | The password to encode | 
Return Value
| string | The encoded password | 
bool isPasswordValid(UserInterface $user, string $raw)
Parameters
| UserInterface | $user | The user | 
| string | $raw | A raw password | 
Return Value
| bool | true if the password is valid, false otherwise | 
    © 2004–2017 Fabien Potencier
Licensed under the MIT License.
    http://api.symfony.com/3.4/Symfony/Component/Security/Core/Encoder/UserPasswordEncoderInterface.html