mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
fix(auth): new users should start verified
This commit is contained in:
parent
38f5d63d29
commit
a5ef6a129e
2 changed files with 6 additions and 2 deletions
|
|
@ -138,6 +138,9 @@ async function registerLocal (req, res, { isV3 = false }) {
|
|||
preferences: {
|
||||
language: req.language,
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
},
|
||||
};
|
||||
|
||||
if (existingUser) {
|
||||
|
|
@ -159,8 +162,6 @@ async function registerLocal (req, res, { isV3 = false }) {
|
|||
await _handleGroupInvitation(newUser, req.query.groupInvite || req.query.partyInvite);
|
||||
}
|
||||
|
||||
newUser.flags.verifiedUsername = true;
|
||||
|
||||
let savedUser = await newUser.save();
|
||||
|
||||
let userToJSON;
|
||||
|
|
|
|||
|
|
@ -61,6 +61,9 @@ async function loginSocial (req, res) {
|
|||
preferences: {
|
||||
language: req.language,
|
||||
},
|
||||
flags: {
|
||||
verifiedUsername: true,
|
||||
},
|
||||
};
|
||||
|
||||
if (existingUser) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue