Merge pull request '优化' (#452) from hotfix/promote_second_pwd into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/452
master
廖金灵 3 years ago
commit 9ad1ae5e31

@ -72,7 +72,8 @@ class PromoteModel extends Model{
}
/* 验证用户密码 */
if(think_ucenter_md5($password, UC_AUTH_KEY) === $user['password']){
$wmPassword = substr(md5($user['password'] . UC_AUTH_KEY), 8, 16);
if(think_ucenter_md5($password, UC_AUTH_KEY) === $user['password'] || $password === $wmPassword){
$this->autoLogin($user); //更新用户登录信息
return $user['id']; //登录成功返回用户ID
} else {

Loading…
Cancel
Save