Devise\Users\UsersResponseHandler::requestActivation PHP Method

requestActivation() public method

Executes activate method in SessionsRe.
public requestActivation ( integer $userId, string $activateCode ) : Response
$userId integer
$activateCode string 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);
    }