|
|
|
@ -9,6 +9,8 @@ class Admin_LoginController extends Ctrl_Admin{ |
|
|
|
|
public function LoginAction(){ |
|
|
|
|
$tAMO = new AdminModel; |
|
|
|
|
$REQUEST =json_decode(file_get_contents('php://input'),true); |
|
|
|
|
var_dump($REQUEST); |
|
|
|
|
var_dump($_POST);;die; |
|
|
|
|
$pPasswd = empty($REQUEST['password'])?Tool_Fnc::ajaxMsg('密码不能为空'):trim($REQUEST['password']); |
|
|
|
|
$pName = empty($REQUEST['username'])?Tool_Fnc::ajaxMsg('用户名不能为空'):Tool_Fnc::safe_string($REQUEST['username']); |
|
|
|
|
$AdminInfo = $tAMO->field("*")->where("admin_username='{$pName}'")->fRow(); |
|
|
|
|