优化注册管理员提示信息

master
chenzhi 5 years ago
parent 29d204bf97
commit a6f52ccdb8

@ -254,7 +254,7 @@ class UserController extends AdminController {
if (!empty($usernameUser)) {
$this->error('用户名已存在!');
}
$emailUser = M('UcenterMember', 'sys_')->field('username')->where(['username' => $username])->find();
$emailUser = M('UcenterMember', 'sys_')->field('id')->where(['email' => $email])->find();
if (!empty($emailUser)) {
$this->error('邮箱已存在!');
}

Loading…
Cancel
Save