Exemple #1
0
 public function attemptResetPassword($username, $password)
 {
     $newPassword = password_hash($password, PASSWORD_DEFAULT);
     $result = $this->userRepo->update(['password' => $newPassword], compact('username'));
     return (bool) $result;
 }
Exemple #2
0
 /**
  * get users array
  *
  * @param object  $user
  * @return array
  */
 public function getUsersToArray($users)
 {
     return $this->userRepo->getUsersToArray($users);
 }