From 1f02e642981e8aced92391c5e47de0b3dcfac09e Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 16 Aug 2026 13:42:01 +0200 Subject: Give the pre-authentication pages one card .auth_card nowcarries the login form and the second-factor challenge. --- app/views/otp_challenges/new.html.erb | 28 +++++++++++++--------------- app/views/sessions/new.html.erb | 2 +- 2 files changed, 14 insertions(+), 16 deletions(-) (limited to 'app/views') diff --git a/app/views/otp_challenges/new.html.erb b/app/views/otp_challenges/new.html.erb index ff7df222..551d798c 100644 --- a/app/views/otp_challenges/new.html.erb +++ b/app/views/otp_challenges/new.html.erb @@ -1,18 +1,16 @@ -

<%= t(".title") %>

+
+

<%= t(".title") %>

-
-
-
<%= t(".code") %>
-
- <%= form_tag otp_challenge_path, :method => :post, :class => "otp_form" do %> - <%= text_field_tag :code, nil, :autofocus => true, - :autocomplete => "one-time-code", :inputmode => "numeric", - :maxlength => 6, :pattern => "[0-9]{6}", :class => "otp_code" %> - <%= t(".hint") %> - <%= button_tag :type => "submit", :class => "action_button" do %> - <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".log_in") %> - <% end %> - <% end %> + <%= form_tag otp_challenge_path, :method => :post, :class => "otp_form" do %> + -
+ <%= t(".hint") %> + <%= button_tag :type => "submit", :class => "action_button" do %> + <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".log_in") %> + <% end %> + <% end %>
diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index a57b1ba4..4afa38ad 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -1,4 +1,4 @@ -
+

<%= t(".heading") %>

<%= form_tag session_path do -%> -- cgit v1.3