Method |
Description |
|
changePassword ( Symfony\Component\Security\Core\User\UserInterface $user, string $password ) |
Changes the password of a user. |
|
dateIsInRequestFrame ( DateTime $date ) : boolean |
Takes a date-time of a reset-token and returns true iff the token associated with the date-time
was requested less then the request-interval before. (So there is not really a need to generate a new token). |
|
deleteToken ( Symfony\Component\Security\Core\User\UserInterface $user ) |
Deletes the user's reset-password-token. |
|
encodePassword ( Symfony\Component\Security\Core\User\UserInterface $user, string $password, string $salt ) : mixed |
Returns an encoded password gor a given one. |
|
findUser ( string $identifier ) : Symfony\Component\Security\Core\User\UserInterface |
Finds a user with an identifier (username or email). |
|
findUserByValidToken ( string $token ) : Symfony\Component\Security\Core\User\UserInterface |
Returns a user for a given token and checks if the token is still valid. |
|
generateTokenForUser ( Symfony\Component\Security\Core\User\UserInterface $user ) |
Generates a new token for a new user. |
|
getEmail ( Symfony\Component\Security\Core\User\UserInterface $user ) : string |
Returns the users email or as a fallback the installation-email-adress. |
|
getRequestInterval ( ) : DateInterval |
The interval in which only one token can be generated. |
|
getResetInterval ( ) : DateInterval |
The interval in which the token is valid. |
|
getToken ( ) : string |
Returns a unique token. |
|
getTokenGenerator ( ) : Sulu\Bundle\SecurityBundle\Util\TokenGeneratorInterface |
|
|
getUniqueToken ( string $startToken ) : string |
If the passed token is unique returns it back otherwise returns a unique token. |
|
getUserRepository ( ) : Sulu\Component\Security\Authentication\UserRepositoryInterface |
|
|
loginUser ( Symfony\Component\Security\Core\User\UserInterface $user, $request ) |
Gives a user a token, so she's logged in. |
|
sendTokenEmail ( Symfony\Component\Security\Core\User\UserInterface $user, string $from, string $to ) |
Sends the password-reset-token of a user to an email-adress. |
|