-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor authentication result handling in register.go
Revised code in register.go to distinguish successful and failed 2FA authentication outcomes. Removed an unnecessary blank line and renamed a variable to better reflect its functionality. Adjusted the function processAuthResult, adding authCompleteWithFail as an extra parameter and differentiating actions based on outcome. This helps to handle the 2FA redirection more appropriately based on whether authentication was successful or failed. Signed-off-by: Christian Roessner <c@roessner.co>
- Loading branch information
Christian Roessner
committed
May 7, 2024
1 parent
486d0cb
commit 1f52aec
Showing
1 changed file
with
41 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters