mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
fix(auth): null string validation error on unique email conflict
This commit is contained in:
parent
e9222e4f7c
commit
d5926ef7f1
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ export async function socialEmailToLocal (user) {
|
|||
).exec();
|
||||
if (!conflictingUser) return socialEmail;
|
||||
}
|
||||
return null;
|
||||
return undefined;
|
||||
}
|
||||
|
||||
export async function loginSocial (req, res) { // eslint-disable-line import/prefer-default-export
|
||||
|
|
|
|||
Loading…
Reference in a new issue