Skip to content

Commit

Permalink
reset email confirmation only when email changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ae2079 committed Aug 20, 2024
1 parent 68611b2 commit 62aed4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/resolvers/userResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ export class UserResolver {
emailConfirmationSent: false,
emailConfirmationSentAt: null,
});
dbUser.emailConfirmed = false;
dbUser.emailConfirmedAt = null;
dbUser.emailConfirmationSent = false;
dbUser.emailConfirmationSentAt = null;
dbUser.email = email;
}
dbUser.emailConfirmed = false;
dbUser.emailConfirmedAt = null;
dbUser.emailConfirmationSent = false;
dbUser.emailConfirmationSentAt = null;
dbUser.email = email;
}
if (url !== undefined) {
dbUser.url = url;
Expand Down

0 comments on commit 62aed4b

Please sign in to comment.