Skip to content
Snippets Groups Projects
Commit ab3214d9 authored by Arie Peterson's avatar Arie Peterson
Browse files

Hide recovery link on TOTP form

parent b32e5018
No related branches found
No related tags found
1 merge request!162Resolve "Test login sequences"
Pipeline #43613 passed with stages
in 7 minutes and 6 seconds
......@@ -98,6 +98,12 @@ function flow_login() {
// Render login form (group: password)
var form_html = render_form(data, group, "login");
$("#contentLogin_" + group).html(form_html);
// Hide the recovery link on the TOTP entry
// form. It's not really useful at that point, and
// you get a redirect loop if you use it.
if (group == 'totp') {
$("#recoveryLink").hide();
}
}
render_messages(data);
......
......@@ -86,7 +86,7 @@
class="font-medium text-primary-600 mt-0 pt-2 border-t-gray-50 border-t-2 flex justify-end"
>
<div id="contentHelp" class="flex flex-col text-right">
<a href="recovery" class="hover:text-primary-700 mb-2">Set new password</a
<a id="recoveryLink" href="recovery" class="hover:text-primary-700 mb-2">Set new password</a
><a
href="https://stackspin.net"
class="text-sm text-gray-400 hover:text-primary-500"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment