示例#1
0
 /**
  * Why are you so salty bro?
  *
  * @param $user_id
  *
  * @return null
  */
 public function GetSalt($user_id)
 {
     if ($this->user->Exists($user_id)) {
         return $this->manager->GetSalt($user_id);
     }
     return null;
 }
示例#2
0
 /**
  * Makes a verify request
  *
  * @param $user_id
  *
  * @param $email
  *
  * @return bool
  */
 public function MakeVerifyRequest($user_id, $email)
 {
     /**
      * Lets create a token for this user
      */
     $token = $this->user->Email()->verify->CreateToken($user_id, $email);
     /**
      * Lets make an array to feed the template sender
      */
     $array = ['user_id' => $user_id, 'user_token' => $token];
     /**
      * Lets send the email!
      */
     $result = $this->user->Email()->SendTemplateEmail($user_id, 'account_verify', $array);
     /**
      * Return the result
      */
     return $result;
 }