Skip to content

Commit

Permalink
fix resetPassword params
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandes-natanael committed Aug 12, 2024
1 parent c207df1 commit 45f6b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class AuthService {
return { message: 'Check your email, you will receive an redirect link' };
}

async resetPassword(newPassword: string, resetToken: string) {
async resetPassword({newPassword, resetToken}: ResetPasswordDto) {
const token = await this.ResetTokenModel.findOneAndDelete({
token: resetToken,
expiryDate: { $gte: new Date() },
Expand Down

0 comments on commit 45f6b56

Please sign in to comment.