UserPasswordEncoderInterface
in
UserPasswordEncoderInterface is the interface for the password encoder service.
Tags
Table of Contents
- encodePassword() : string
- Encodes the plain password.
- isPasswordValid() : bool
Methods
encodePassword()
Encodes the plain password.
public
encodePassword(UserInterface $user, string $plainPassword) : string
Parameters
- $user : UserInterface
- $plainPassword : string
-
The password to encode
Return values
string —The encoded password
isPasswordValid()
public
isPasswordValid(UserInterface $user, string $raw) : bool
Parameters
- $user : UserInterface
- $raw : string
-
A raw password
Return values
bool —true if the password is valid, false otherwise