1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

Remove redundant check on requireLocalAccount

This commit is contained in:
Rory Powell 2021-07-13 10:45:13 +01:00
parent 1a7619367b
commit 4c9308462e

View file

@ -60,12 +60,10 @@ exports.authenticateThirdParty = async function (
// exit early if there is still no user and auto creation is disabled
if (!dbUser && requireLocalAccount) {
if (requireLocalAccount) {
return authError(
done,
"Email does not yet exist. You must set up your local budibase account first."
)
}
return authError(
done,
"Email does not yet exist. You must set up your local budibase account first."
)
}
// first time creation