SRCMS V2社区开发版 (版本:2017/02/07)

[新增] 漏洞报告邮件提醒
[新增] 前台用户积分记录
[新增] 后台审核页面调整
[优化] 后台管理登录速度
This commit is contained in:
Martin Zhou
2017-02-07 17:41:22 +08:00
parent 2b4c8fc6b3
commit ceac6bb9fa
30 changed files with 2932 additions and 175 deletions

View File

@@ -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('账号被禁用,请联系管理员 :(') ;
}