Exemplo n.º 1
0
 /**
  * Creates a public token for the specified User. The public token can be used
  * for password reset and other public user actions in which the user is required
  * to be identified.
  *
  * @param  \Northern\Core\Domain\User
  * @return string
  */
 public function getUserPublicToken(User $user)
 {
     $publicToken = sha1("{$user->getId()}{$user->getEmail()}{$user->getPassword()}{$user->getTimeCreated()}");
     return $publicToken;
 }