SRCMS V2社区开发版 (版本:2017/02/07)
[新增] 漏洞报告邮件提醒 [新增] 前台用户积分记录 [新增] 后台审核页面调整 [优化] 后台管理登录速度
This commit is contained in:
@@ -52,9 +52,11 @@ class LoginController extends Controller {
|
||||
$username = I('username','','htmlspecialchars');
|
||||
$password = I('password');
|
||||
$user = $member->where(array('username'=>$username))->find();
|
||||
if($user['password'] != md5(md5(md5($user['salt']).md5($password)."SR")."CMS")) {
|
||||
|
||||
if($user['password'] != md5(md5(md5($user['salt']).md5($password)."SR")."CMS")) {
|
||||
$this->error('账号或密码错误 :(') ;
|
||||
}
|
||||
|
||||
if($user['status'] == 0){
|
||||
$this->error('账号被禁用,请联系管理员 :(') ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user