From b7fa2e617936b409c4bb1e570c539b455f9a9870 Mon Sep 17 00:00:00 2001 From: Frederik Rothenberger Date: Tue, 7 Jun 2022 10:00:43 +0200 Subject: [PATCH] Don't force anchor entry on recovery for authorize page (#663) --- src/frontend/src/flows/authenticate/index.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/frontend/src/flows/authenticate/index.ts b/src/frontend/src/flows/authenticate/index.ts index ac61408332..8295a87ca9 100644 --- a/src/frontend/src/flows/authenticate/index.ts +++ b/src/frontend/src/flows/authenticate/index.ts @@ -336,13 +336,7 @@ const initRecovery = () => { const recoverButton = document.getElementById( "recoverButton" ) as HTMLButtonElement; - recoverButton.onclick = () => { - const userNumber = readUserNumber(); - if (userNumber !== undefined) { - return useRecovery(userNumber); - } - toggleErrorMessage("userNumberInput", "invalidAnchorMessage", true); - }; + recoverButton.onclick = () => useRecovery(readUserNumber()); }; /**