getReq변경, ajax인 경우 ajax요청

This commit is contained in:
2020-05-05 00:19:01 +09:00
parent a688b6fdce
commit 19a84d0cc8
69 changed files with 258 additions and 166 deletions
+3 -1
View File
@@ -3,6 +3,8 @@ namespace sammo;
require(__DIR__.'/../vendor/autoload.php');
WebUtil::requireAJAX();
$RootDB = RootDB::db();
$session = Session::getInstance();
if($session->isLoggedIn()){
@@ -21,7 +23,7 @@ if(!$session->isLoggedIn(true)){
]);
}
$otp = Util::getReq('otp', 'int');
$otp = Util::getPost('otp', 'int');
if(!$otp){
Json::die([
'result'=>false,