/**
* Executes activate method in SessionsRe.
*
* @param integer $userId
* @param string $activateCode Hashed activate_code value in db
* @return Response
*/
public function requestActivation($userId, $activateCode)
{
if ($this->SessionsRepository->activate($userId, $activateCode)) {
return $this->Redirect->route('dvs-dashboard')->with('message', $this->SessionsRepository->message);
}
return $this->Redirect->route('dvs-user-login')->withInput()->withErrors($this->SessionsRepository->errors)->with('message-errors', $this->SessionsRepository->message);
}