Util::array_get($_POST 류를 Util::getReq로 통합.

array_merge를 이상하게 처리하는 부분 수정
This commit is contained in:
Hide_D committed 2018-04-07 15:16:46 +09:00
1 parent 183efd073b
commit 0cc7ba368a
21 files changed
+125 -88

No files matched your search

+3 -3
View File
@@ -6,9 +6,9 @@ require(__dir__.'/../vendor/autoload.php');
session_start();
session_destroy();
$username = mb_strtolower(Util::array_get($_POST['username']), 'utf-8');
$password = Util::array_get($_POST['password']);
$nickname = Util::array_get($_POST['nickname']);
$username = mb_strtolower(Util::getReq('username'), 'utf-8');
$password = Util::getReq('password');
$nickname = Util::getReq('nickname');
if(!$username || !$password || !$nickname){
Json::die([