From 5f26394947d1150e2656bb22c5858ae5edcdcac7 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 24 Jul 2026 17:20:22 +0200 Subject: Polish the OTP flows: autocomplete tokens, button dialect, QR sizing, my-account link --- app/views/otp_enrollments/show.html.erb | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'app/views/otp_enrollments') diff --git a/app/views/otp_enrollments/show.html.erb b/app/views/otp_enrollments/show.html.erb index 9dfa3422..90c42b59 100644 --- a/app/views/otp_enrollments/show.html.erb +++ b/app/views/otp_enrollments/show.html.erb @@ -3,19 +3,22 @@
Scan
- <%= raw RQRCode::QRCode.new(current_user.pending_otp_provisioning_uri) - .as_svg(:module_size => 4, :viewbox => true, - :color => "000", :fill => "fff") %> - Or enter the secret manually: - <%= current_user.otp_pending_secret %> +
+ <%= raw RQRCode::QRCode.new(current_user.pending_otp_provisioning_uri) + .as_svg(:module_size => 4, :viewbox => true, + :color => "000", :fill => "fff") %> +
+ Or enter the secret manually: <%= current_user.otp_pending_secret %>
Confirm
- <%= form_tag otp_enrollment_path, :method => :put do %> + <%= form_tag otp_enrollment_path, :method => :put, :class => "otp_form" do %> <%= text_field_tag :code, nil, :autofocus => true, :autocomplete => "one-time-code", :inputmode => "numeric" %> - <%= submit_tag "Confirm" %> + <%= button_tag :type => "submit", :class => "action_button" do %> + <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> Confirm + <% end %> <% end %> Enter the six-digit code your app shows for “<%= OTP_ISSUER %>”. -- cgit v1.3