Skip to content

Commit

Permalink
Revert "Add ability to cancel out of second factor authentication pag…
Browse files Browse the repository at this point in the history
…es to invalidate session and return to primary login"

This reverts commit 9c5eb41.
  • Loading branch information
mseaton committed Dec 11, 2023
1 parent 9c5eb41 commit 833aa1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ public String get(
if (Context.isAuthenticated()) {
return "redirect:" + authenticationUiConfig.getHomePageUrl(ui);
}
else {
request.getRequest().getSession().invalidate();
}

AuthenticationSession authenticationSession = new AuthenticationSession(request.getRequest(), request.getResponse());
List<Location> loginLocations = new ArrayList<>();
Expand Down
5 changes: 2 additions & 3 deletions omod/src/main/webapp/pages/login/loginSecret.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@
<input type="hidden" name="question" value="${question}"/>
${ ui.message(question) }:
</label>
<input id="answer" type="password" name="answer" tabindex="10" placeholder="${ ui.message("authenticationui.loginSecret.secret.placeholder") }"/>
<input id="answer" type="password" name="answer" placeholder="${ ui.message("authenticationui.loginSecret.secret.placeholder") }"/>
</p>

<p>
<input id="cancel-button" class="cancel" type="button" tabindex="30" value="${ ui.message("authenticationui.login.cancel") }" onclick="document.location.href='${ui.pageLink("authenticationui", "login/login")}'" />
<input id="login-button" class="confirm" type="submit" tabindex="20" value="${ ui.message("authenticationui.loginSecret.button") }"/>
<input id="login-button" class="confirm" type="submit" value="${ ui.message("authenticationui.loginSecret.button") }"/>
</p>

</fieldset>
Expand Down
5 changes: 2 additions & 3 deletions omod/src/main/webapp/pages/login/loginTotp.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@

<p>
<label for="code-input">${ ui.message("authenticationui.loginTotp.code") }</label>
<input id="code-input" type="text" name="code" tabindex="10" value="" placeholder="${ ui.message("authenticationui.loginTotp.code.placeholder") }"/>
<input id="code-input" type="text" name="code" value="" placeholder="${ ui.message("authenticationui.loginTotp.code.placeholder") }"/>
</p>

<p>
<input id="cancel-button" class="cancel" type="button" tabindex="30" value="${ ui.message("authenticationui.login.cancel") }" onclick="document.location.href='${ui.pageLink("authenticationui", "login/login")}'" />
<input id="login-button" class="confirm" type="submit" tabindex="20" value="${ ui.message("authenticationui.loginTotp.button") }"/>
<input id="login-button" class="confirm" type="submit" value="${ ui.message("authenticationui.loginTotp.button") }"/>
</p>

</fieldset>
Expand Down

0 comments on commit 833aa1c

Please sign in to comment.