mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
- 10 failed sign-ins in a row (password, authenticator code, or password at signing) lock an account for 15 minutes from any address; the user is emailed; admins can unlock. Same message as a wrong password. - Passwords: at least 12 characters (max 72), refused if found in Have I Been Pwned (k-anonymity range API; fails open; PWNED_PASSWORDS_CHECK=false) - Optional TOTP (authenticator app) with 10 recovery codes for password and emailed-link sign-in, and at signing (auth method password_totp); codes accepted once; admins can reset; SSO sign-in unaffected - Demo/test passwords updated; guide, README and procedures document Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
723 B
ERB
13 lines
723 B
ERB
<div class="mx-auto max-w-md">
|
|
<h1 class="mb-1 text-2xl font-bold">Welcome</h1>
|
|
<p class="mb-4 text-sm text-slate-600">Create the administrator account to get started.</p>
|
|
<%= form_with model: @user, url: setup_path, class: "card card-body space-y-4" do |f| %>
|
|
<%= f.errors_summary %>
|
|
<%= f.field :name %>
|
|
<%= f.field :email_address, as: :email, label: "Email", required: true %>
|
|
<%= f.field :password, as: :password, required: true, hint: "At least #{User::PASSWORD_MIN} characters; not one known from a data breach." %>
|
|
<%= f.field :password_confirmation, as: :password, required: true %>
|
|
<%= f.submit "Create Admin Account", class: "btn-primary w-full justify-center" %>
|
|
<% end %>
|
|
</div>
|