Session 클래스 재정리
This commit is contained in:
1 parent
9c445e02b9
commit
76543892bc
26 files changed
+55
-93
No files matched your search
@@ -3,14 +3,7 @@ namespace sammo;
|
||||
|
||||
require(__dir__.'/../vendor/autoload.php');
|
||||
|
||||
$session = Session::Instance();
|
||||
|
||||
if(!$session->isLoggedIn()) {
|
||||
Json::die([
|
||||
'result'=>false,
|
||||
'reason'=>'로그인되지 않았습니다.'
|
||||
]);
|
||||
}
|
||||
$session = Session::requireLogin([]);
|
||||
|
||||
// 외부 파라미터
|
||||
// $_POST['pw'] : PW
|
||||
|
||||
Reference in new issue
Block a user