LoginController::verifyPasswordReset PHP 메소드

verifyPasswordReset() 공개 메소드

Verify the verification token of that user (to show the user the password editing view or not)
public verifyPasswordReset ( string $user_name, string $verification_code )
$user_name string username
$verification_code string password reset verification token
    public function verifyPasswordReset($user_name, $verification_code)
    {
        // check if this the provided verification code fits the user's verification code
        if (PasswordResetModel::verifyPasswordReset($user_name, $verification_code)) {
            // pass URL-provided variable to view to display them
            $this->View->render('login/resetPassword', array('user_name' => $user_name, 'user_password_reset_hash' => $verification_code));
        } else {
            Redirect::to('login/index');
        }
    }