summaryrefslogtreecommitdiff
path: root/app/views/users
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-15 16:28:21 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-15 16:28:21 +0200
commit445362ed2f8591d54a3c34cb3c5a69049aefa8c6 (patch)
tree064f2d2e936639fa6ca412ed662203b144172c3d /app/views/users
parentaa984c8c0cad4ac4bff74fc38f60c0e06af6fc50 (diff)
Style totp input fields so that they work better on mobile
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/edit.html.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb
index 2cf5a07c..14e19e39 100644
--- a/app/views/users/edit.html.erb
+++ b/app/views/users/edit.html.erb
@@ -59,8 +59,9 @@
59 <p><%= t(".enabled") %></p> 59 <p><%= t(".enabled") %></p>
60 <%= form_tag otp_enrollment_path, :method => :delete, :class => "otp_form" do %> 60 <%= form_tag otp_enrollment_path, :method => :delete, :class => "otp_form" do %>
61 <%= password_field_tag :current_password, nil, :placeholder => t(".current_password"), :autocomplete => "current-password" %> 61 <%= password_field_tag :current_password, nil, :placeholder => t(".current_password"), :autocomplete => "current-password" %>
62 <%= text_field_tag :code, nil, :placeholder => t(".current_code"), 62 <%= text_field_tag :code, nil, :autocomplete => "one-time-code", :inputmode => "numeric",
63 :autocomplete => "one-time-code", :inputmode => "numeric" %> 63 :maxlength => 6, :pattern => "[0-9]{6}", :class => "otp_code" %>
64 <span class="field_hint"> <%= t(".reset_hint") %> </span>
64 <%= button_tag :type => "submit", :class => "action_button" do %> 65 <%= button_tag :type => "submit", :class => "action_button" do %>
65 <%= icon("shield-off", library: "tabler", "aria-hidden": true) %> <%= t(".disable_second_factor") %> 66 <%= icon("shield-off", library: "tabler", "aria-hidden": true) %> <%= t(".disable_second_factor") %>
66 <% end %> 67 <% end %>