PHP 클래스 Sulu\Bundle\SecurityBundle\Controller\ResettingController

상속: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
파일 보기 프로젝트 열기: sulu/sulu

보호된 프로퍼티들

프로퍼티 타입 설명
$emailMessageKey
$emailSubjectKey
$resetRouteId
$translationDomain

공개 메소드들

메소드 설명
resetAction ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse Resets a users password.
sendEmailAction ( Request $request, boolean $generateNewKey = true ) : Symfony\Component\HttpFoundation\JsonResponse Generates a token for a user and sends an email with a link to the resetting route.

보호된 메소드들

메소드 설명
getMessage ( Symfony\Component\Security\Core\User\UserInterface $user ) : string
getSenderAddress ( Request $request ) : string Returns the sender's email address.
getSubject ( ) : string
getTranslator ( ) : Translator

비공개 메소드들

메소드 설명
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.

메소드 상세

getMessage() 보호된 메소드

protected getMessage ( Symfony\Component\Security\Core\User\UserInterface $user ) : string
$user Symfony\Component\Security\Core\User\UserInterface
리턴 string

getSenderAddress() 보호된 메소드

Returns the sender's email address.
protected getSenderAddress ( Request $request ) : string
$request Symfony\Component\HttpFoundation\Request
리턴 string

getSubject() 보호된 메소드

protected getSubject ( ) : string
리턴 string

getTranslator() 보호된 메소드

protected getTranslator ( ) : Translator
리턴 Symfony\Component\Translation\Translator

resetAction() 공개 메소드

Resets a users password.
public resetAction ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\JsonResponse

sendEmailAction() 공개 메소드

Generates a token for a user and sends an email with a link to the resetting route.
public sendEmailAction ( Request $request, boolean $generateNewKey = true ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
$generateNewKey boolean If true a new token will be generated before sending the mail
리턴 Symfony\Component\HttpFoundation\JsonResponse

프로퍼티 상세

$emailMessageKey 보호되어 있는 정적으로 프로퍼티

protected static $emailMessageKey

$emailSubjectKey 보호되어 있는 정적으로 프로퍼티

protected static $emailSubjectKey

$resetRouteId 보호되어 있는 정적으로 프로퍼티

protected static $resetRouteId

$translationDomain 보호되어 있는 정적으로 프로퍼티

protected static $translationDomain