summaryrefslogtreecommitdiff
path: root/app/views/sessions/new.html.erb
diff options
context:
space:
mode:
authorLogan Fick <logaldeveloper@protonmail.com>2018-06-07 20:31:11 -0400
committerLogan Fick <logaldeveloper@protonmail.com>2018-06-07 20:31:11 -0400
commit6d22462d7a3bebf63b2ea3e28aca4ba75fcac489 (patch)
tree3c43e2819e0ecbd10d72efc9e353673d6026a6fa /app/views/sessions/new.html.erb
parenta241749ee3eb8aaf2044fe49dc55cf1443d1e8cf (diff)
Added TOTP field to login screen.
Diffstat (limited to 'app/views/sessions/new.html.erb')
-rw-r--r--app/views/sessions/new.html.erb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb
index 0158f59..c7cac42 100644
--- a/app/views/sessions/new.html.erb
+++ b/app/views/sessions/new.html.erb
@@ -16,6 +16,14 @@
<td></td>
<td><%= link_to "Lost your password?", lost_password_users_path %></td>
</tr>
+ <tr>
+ <td><%= label_tag :totp_code %></td>
+ <td><%= text_field_tag :totp_code, nil, placeholder: "123456", required: false %></td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>Leave this field blank if you do not have 2FA enabled.</td>
+ </tr>
</table>
<p><%= submit_tag "Log in", class: "btn blue" %></p>
<% end %>