Encriptación en el registro del administrador del sistema
This commit is contained in:
parent
6668c43afc
commit
fd98551f47
|
@ -11,6 +11,8 @@ export class UsersService {
|
|||
) {}
|
||||
private publicKey: string;
|
||||
async create(user: UserDocument): Promise<User> {
|
||||
let passwordEncriptada=Md5.init(user.password);
|
||||
user.password=passwordEncriptada;
|
||||
return this.userModel.create(user);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue