handle confirmed email better

This commit is contained in:
Wyatt Johnson
2018-05-03 17:50:53 -06:00
parent fa66f07db6
commit 949925586f
4 changed files with 41 additions and 1 deletions
@@ -43,6 +43,7 @@ async function updateUserEmailAddress(ctx, email, confirmPassword) {
},
{
$set: { 'profiles.$.id': email },
$unset: { 'profiles.$.metadata.confirmed_at': 1 },
}
);