public function logout($request, $response, $args) { Auth::logout(); return $this->redirect($response, '/auth/login'); }
public function logout() { Auth::logout(); }
public function logout($request, $response, $args) { Auth::logout(); $newResponse = $response->withStatus(302)->withHeader('Location', '/auth/login'); return $newResponse; }
public function handleKill($request, $response, $args) { $user = Auth::getUser(); $passwd = $request->getParam('passwd'); // check passwd $res = array(); if (!Hash::checkPassword($user->pass, $passwd)) { $res['ret'] = 0; $res['msg'] = " 密码错误"; return $this->echoJson($response, $res); } Auth::logout(); $user->delete(); $res['ret'] = 1; $res['msg'] = "GG!您的帐号已经从我们的系统中删除."; return $this->echoJson($response, $res); }
public function logout() { $this->_methodName = 'logout'; $this->resolveParams(); $this->checkAuth(); Auth::logout(); return $this; }