From f4206f888c231f9ff6675dae98509c288e3e2394 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 18 Apr 2023 22:14:58 -0400 Subject: [PATCH] fix: Rare unable to login case --- server/commands/accountProvisioner.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/commands/accountProvisioner.ts b/server/commands/accountProvisioner.ts index 91b735408..b32f598d0 100644 --- a/server/commands/accountProvisioner.ts +++ b/server/commands/accountProvisioner.ts @@ -111,12 +111,12 @@ async function accountProvisioner({ } } - if (err.id) { - throw err; - } - if (!result) { - throw InvalidAuthenticationError(err.message); + if (err.id) { + throw err; + } else { + throw InvalidAuthenticationError(err.message); + } } }