getDB(), getRootDB()를 autoload 클래스로 변경
- 각각 DB::db(), RootDB::db()임.
This commit is contained in:
@@ -23,7 +23,7 @@ $newPw = $_POST['new_pw'];
|
||||
|
||||
$response['result'] = false;
|
||||
|
||||
$db = getRootDB();
|
||||
$db = RootDB::db();
|
||||
|
||||
$userInfo = $db->update('member',[
|
||||
'pw'=>$db->sqleval('sha2(concat(salt, %s, salt), 512)', $newPw)
|
||||
|
||||
Reference in New Issue
Block a user