Update user.class.php

pull/53/head
Mike Wang 2016-02-09 17:17:26 +08:00
parent 94ed0841e4
commit 93ff23a171
1 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ class user extends Controller
* 登录数据提交处理 * 登录数据提交处理
*/ */
public function loginSubmit(){ public function loginSubmit(){
if(!isset($this->in['name']) || !isset($this->in['password'])) { if(empty($this->in['name']) || empty($this->in['password'])) {
$msg = $this->L['login_not_null']; $msg = $this->L['login_not_null'];
}else{ }else{
//错误三次输入验证码 //错误三次输入验证码
@ -289,4 +289,4 @@ class user extends Controller
$_SESSION['check_code'] = strtolower($code); $_SESSION['check_code'] = strtolower($code);
check_code($code); check_code($code);
} }
} }