Browse Source

Format account locked view

pull/274/head
baarkerlounger 3 years ago
parent
commit
f0dedc42c2
  1. 11
      app/views/devise/two_factor_authentication/max_login_attempts_reached.html.erb
  2. 4
      config/locales/en.yml

11
app/views/devise/two_factor_authentication/max_login_attempts_reached.html.erb

@ -0,0 +1,11 @@
<% content_for :title, I18n.t("devise.two_factor_authentication.max_login_attempts_reached") %>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">
<%= content_for(:title) %>
</h1>
<p><%= I18n.t("devise.two_factor_authentication.contact_administrator") %></p>
</div>
</div>

4
config/locales/en.yml

@ -126,8 +126,8 @@ en:
two_factor_authentication: two_factor_authentication:
success: "Two factor authentication successful." success: "Two factor authentication successful."
attempt_failed: "Attempt failed." attempt_failed: "Attempt failed."
max_login_attempts_reached: "Access completely denied as you have reached your attempts limit" max_login_attempts_reached: "Too many incorrect attempts, your account has been locked"
contact_administrator: "Please contact your system administrator." contact_administrator: "Contact another helpdesk administrator."
code_has_been_sent: "Your security code has been sent." code_has_been_sent: "Your security code has been sent."
code_required: "Security code is required" code_required: "Security code is required"
code_incorrect: "Security code is incorrect" code_incorrect: "Security code is incorrect"

Loading…
Cancel
Save