1 changed files with 24 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||||
|
<?php |
||||
|
|
||||
|
namespace app\controller; |
||||
|
|
||||
|
use app\BaseController; |
||||
|
use think\facade\View; |
||||
|
use think\facade\Session; |
||||
|
|
||||
|
class Passport extends BaseController |
||||
|
{ |
||||
|
public function login(){ |
||||
|
return View::fetch("login"); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 退出登录 |
||||
|
*/ |
||||
|
public function logout() |
||||
|
{ |
||||
|
Session::clear('btgym_manager'); |
||||
|
$url =url('passport/login'); |
||||
|
return redirect($url); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue