From a1233e5437a89c0d0954a60a68d6dee6822881ec Mon Sep 17 00:00:00 2001 From: Callan Bryant Date: Mon, 23 Jul 2018 11:06:17 +0100 Subject: [PATCH] re-enable element before sending message --- client/src/lib/firstfactor/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/lib/firstfactor/index.ts b/client/src/lib/firstfactor/index.ts index 4cc84584..0e07e7ed 100644 --- a/client/src/lib/firstfactor/index.ts +++ b/client/src/lib/firstfactor/index.ts @@ -31,10 +31,10 @@ export default function (window: Window, $: JQueryStatic, } function onFirstFactorFailure(err: Error) { + $("input,button").removeAttr("disabled"); + $("form").css("opacity", 1); notifier.error(UserMessages.AUTHENTICATION_FAILED); $(UISelectors.PASSWORD_FIELD_ID).select(); - $("form").css("opacity", 1); - $("input,button").removeAttr("disabled"); $(UISelectors.SIGN_IN_BUTTON_ID).text("Sign in"); }