mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
perf: 支持重置管理员密码,忘记密码的补救方案
This commit is contained in:
@@ -155,4 +155,12 @@ export class UserService extends BaseService<UserEntity> {
|
||||
|
||||
await this.update(param);
|
||||
}
|
||||
|
||||
async resetPassword(userId: any, newPasswd: string) {
|
||||
const param = {
|
||||
id: userId,
|
||||
password: newPasswd,
|
||||
};
|
||||
await this.update(param);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user