fix: 修复后台添加会员密码未加密
This commit is contained in:
@@ -87,6 +87,9 @@ class UserService
|
||||
if(!empty($data)) {
|
||||
throw new OperateException('该用户ID或邮箱已经存在!');
|
||||
}
|
||||
// 密码加密
|
||||
$params['salt'] = Random::alpha();
|
||||
$params['pwd'] = encryptPwd($params['pwd'],$params['salt']);
|
||||
|
||||
Db::startTrans();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user