Small 2fa fixes

This commit is contained in:
aignatov-bio 2020-07-27 13:42:51 +02:00
parent 1a8333612a
commit 33e3e3d301
4 changed files with 4 additions and 2 deletions

View file

@ -89,6 +89,7 @@
$('#twoFactorAuthenticationModal .qr-code').html(result.qr_code);
$('#twoFactorAuthenticationModal').find('[href="#2fa-step-1"]').tab('show');
$('#twoFactorAuthenticationModal').modal('show');
$('#twoFactorAuthenticationModal').find('.submit-code-field').removeClass('error').find('#submit_code').val('');
});
});

View file

@ -8,7 +8,7 @@
<%= f.label t("users.registrations.edit.email_label") %>
<div class="user-attribute">
<%= @user.email %>
<a href="#" class="btn btn-default" data-action="edit"><%=t "general.edit" %></a>
<a href="#" class="btn btn-default" data-action="edit"><%= t("general.change") %></a>
</div>
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
<div class="alert alert-info" style="margin-top: 15px;" role="alert">

View file

@ -9,7 +9,7 @@
<%= f.label t("users.registrations.edit.password_label") %>
<div class="user-attribute">
••••••••••••
<a href="#" class="btn btn-default" data-action="edit"><%=t "general.edit" %></a>
<a href="#" class="btn btn-default" data-action="edit"><%=t("general.change") %></a>
</div>
</div>
</div>

View file

@ -2329,6 +2329,7 @@ en:
save: "Save"
close: "Close"
create: 'Create'
change: "Change"
no_comments: "No comments!"
more_comments: "More comments"
comment_placeholder: "Your Message"