예제 #1
0
 public function requestPasswordResetToken($email, $userAgent, $ip4)
 {
     $user = $this->userRepository->findOneByEmail($email);
     $userToken = UserToken::createResetPasswordToken($user, UserToken::getRandomToken(), $userAgent, $ip4);
     $this->createUserToken($userToken);
 }
예제 #2
0
 public function testGetRandomToken()
 {
     $this->assertSame(40, strlen(UserToken::getRandomToken()));
 }