Skip to content

Commit

Permalink
Don't force anchor entry on recovery for authorize page (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Rothenberger authored Jun 7, 2022
1 parent a32991d commit b7fa2e6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/frontend/src/flows/authenticate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
};

/**
Expand Down

0 comments on commit b7fa2e6

Please sign in to comment.