Remove redundant check on requireLocalAccount
This commit is contained in:
parent
5f5fe92807
commit
b47073ae49
|
@ -60,13 +60,11 @@ 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."
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
// first time creation
|
||||
if (!dbUser) {
|
||||
|
|
Loading…
Reference in New Issue