UserPasswordEncoder

class UserPasswordEncoder implements UserPasswordEncoderInterface

A generic password encoder.

Methods

__construct(EncoderFactoryInterface $encoderFactory)
string encodePassword(UserInterface $user, string $plainPassword)

Encodes the plain password.

bool isPasswordValid(UserInterface $user, string $raw)

Details

__construct(EncoderFactoryInterface $encoderFactory)

Parameters

EncoderFactoryInterface $encoderFactory The encoder factory

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
doc_Symfony
2016-10-28 06:36:20
Comments
Leave a Comment

Please login to continue.