Merge pull request #91 from DeimosPr4/UH-registroAdminSistema
Encriptación en el registro del administrador del sistema
This commit is contained in:
commit
8f537f9c4f
|
@ -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