/**
* 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);
}