Skip to content

Commit

Permalink
Merge pull request #106 from southbridgeio/#874578_add_2fa_otp_instru…
Browse files Browse the repository at this point in the history
…ctions

#874578 add 2fa otp instructions
  • Loading branch information
annovikava authored Apr 12, 2024
2 parents 0f1fa3a + be6c5ca commit 023d892
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/views/account/otp.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div id="login-form">
<div id="login-form-2fa">
<%= form_tag(confirm_otp_path) do %>
<%= render 'account/autologin' %>

<table style="width: 300px;">
<table style="width: 450px;">

<tr>
<td align="right">
Expand Down
11 changes: 10 additions & 1 deletion assets/stylesheets/redmine_2fa.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#init2FA {
width: 500px;
width: 550px;
margin-top: 5em;
padding: 1em;
margin-left: auto;
Expand Down Expand Up @@ -50,3 +50,12 @@ table .qr td.white {
background-color: #fff;
}

#login-form-2fa {
margin:5em auto 2em auto;
padding:20px;
width:500px;
border:1px solid #FDBF3B;
background-color:#FFEBC1;
border-radius:4px;
box-sizing: border-box;
}
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ en:
telegram_auth:
message: 'Redmine "%{app_title}" auth code: %{code}. Expired at %{expiration_time}.'

auth_code: 'Authorization code'
auth_code: 'Authorization code from Google Authenticator or other authenticator app'
resend:
link: 'Resend code'
instruction_html: 'Code sent. Code resending is possible after <span id="otpCodeResendTimer">%{timeout}</span> seconds.'
Expand Down
2 changes: 1 addition & 1 deletion config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ ru:
telegram_auth:
message: 'Код Redmine "%{app_title}": %{code}. Действителен до %{expiration_time}.'

auth_code: 'Код подтверждения'
auth_code: 'Код подтверждения из приложения Google Authenticator или другого аутентификатора'
resend:
link: 'Отправить повторно'
instruction_html: 'Код отправлен. Повторная отправка кода возможна через <span id="otpCodeResendTimer">%{timeout}</span> секунд.'
Expand Down

0 comments on commit 023d892

Please sign in to comment.