mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
handle confirmed email better
This commit is contained in:
@@ -43,6 +43,7 @@ async function updateUserEmailAddress(ctx, email, confirmPassword) {
|
||||
},
|
||||
{
|
||||
$set: { 'profiles.$.id': email },
|
||||
$unset: { 'profiles.$.metadata.confirmed_at': 1 },
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user