Exemplo n.º 1
0
 /**
  * @param $userId
  * @param $code
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function getActivate($userId, $code)
 {
     if ($this->auth->activate($userId, $code)) {
         Flash::success(trans('user::messages.account activated you can now login'));
         return redirect()->route('login');
     }
     Flash::error(trans('user::messages.there was an error with the activation'));
     return redirect()->route('login');
 }