We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e849e26 commit 587f8f3Copy full SHA for 587f8f3
apps/api/src/auth/auth.service.ts
@@ -38,8 +38,8 @@ export class AuthService {
38
}
39
40
async updateUserPassword(userId: Types.ObjectId, rawPassword: string): Promise<UserDocument> {
41
- const hash = this.hashPassword(rawPassword);
42
- return this.usersService.findOneByIdAndUpdate(userId, { 'profile.password': hash });
+ const hash = await this.hashPassword(rawPassword);
+ return this.usersService.findOneByIdAndUpdate(userId, { 'auth.password': hash });
43
44
45
private hashPassword(input: string): Promise<string> {
0 commit comments