I do believe that OTP/MFA is now working.
This commit is contained in:
@@ -21,5 +21,5 @@
|
||||
<%= f.submit "Change my password" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= render "devise/shared/links" %>
|
||||
<hr/>
|
||||
<%#= render "devise/shared/links" %>
|
||||
|
||||
@@ -35,5 +35,12 @@
|
||||
<%= f.submit "Update" %>
|
||||
</div>
|
||||
<% end %>
|
||||
<hr/>
|
||||
|
||||
<% if current_user.otp_secret.to_s.size == 0 %>
|
||||
<%= link_to "Enable MFA", new_mfa_path %>
|
||||
<% else %>
|
||||
<%= link_to "Edit MFA", new_mfa_path %>
|
||||
<% end %>
|
||||
|
|
||||
<%= link_to "Back", :back %>
|
||||
|
||||
@@ -12,6 +12,11 @@
|
||||
<%= f.password_field :password, autocomplete: "current-password", class: "input" %>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-column mt-3">
|
||||
<%= f.label :otp_attempt, class: "my-2" %>
|
||||
<%= f.password_field :otp_attempt, autocomplete: "OTP Code", class: "input" %>
|
||||
</div>
|
||||
|
||||
<% if devise_mapping.rememberable? %>
|
||||
<div class="flex flex-items-center mt-4">
|
||||
<%= f.check_box :remember_me, class: "checkbox mr-3" %>
|
||||
|
||||
Reference in New Issue
Block a user