recoverPassword() публичный Метод

Handle a POST request to recover password
public recoverPassword ( array $input ) : Response
$input array
Результат Response
Пример #1
0
 /**
  * Executes recoverPassword method in SessionsRepository
  *
  * @param  array  $input
  * @return Response
  */
 public function requestRecoverPassword($input)
 {
     if ($this->SessionsRepository->recoverPassword($input)) {
         return $this->Redirect->route('dvs-user-recover-password')->with('message-success', $this->SessionsRepository->message);
     }
     return $this->Redirect->route('dvs-user-recover-password')->withInput()->withErrors($this->SessionsRepository->errors)->with('message-errors', $this->SessionsRepository->message);
 }