mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-02-23 13:22:38 +00:00
修改新增用户支持设置密码
This commit is contained in:
parent
393f2c020a
commit
3bd8ec86cb
@ -123,7 +123,7 @@ export class BaseSysUserService extends BaseService {
|
|||||||
if (!_.isEmpty(exists)) {
|
if (!_.isEmpty(exists)) {
|
||||||
throw new CoolCommException('用户名已经存在~');
|
throw new CoolCommException('用户名已经存在~');
|
||||||
}
|
}
|
||||||
param.password = md5('123456'); // 默认密码 建议未改密码不能登陆
|
param.password = md5(param.password);
|
||||||
await this.baseSysUserEntity.save(param);
|
await this.baseSysUserEntity.save(param);
|
||||||
await this.updateUserRole(param);
|
await this.updateUserRole(param);
|
||||||
return param.id;
|
return param.id;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user