Files
simple-aircraft-manager-rails/app/views/invited_signings/welcome.html.erb
T
rickyandClaude Opus 5.5 19bc3efa19 New accounts only from an administrator or an administrator's invitation
Anyone can add an aircraft and so manage its people, so invitations from
non-administrators could bring in new accounts without an administrator.

- An invitation makes a new account only if whoever made it is still an
  administrator when it's used; an aircraft's Access page invitations are
  for people who already have an account (its welcome page says so).
- Signing invitations no longer make accounts: the mechanic needs one
  first, and the owner is told when they don't have one.
- With SSO, "Continue with <provider>" on an administrator's invitation
  makes the account and accepts the invitation (only for its address when
  it has one), so invitations work without OIDC_AUTO_CREATE_USERS. That
  setting stays, documented as giving accounts without an invitation; the
  Authentik example now leaves it off.
- Docs: who makes accounts (guide, README, Authentik, .env.example, API).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 19:00:45 -05:00

12 lines
744 B
ERB

<% content_for :title, t(".sign_a_logbook_entry") %>
<div class="mx-auto max-w-md space-y-4">
<h1 class="text-2xl font-bold"><%= t(".sign_a_logbook_entry") %></h1>
<p class="text-sm text-slate-600"><%= t(".you_ve_been_asked_to_html", date: (fmt_date(@entry.date)), log_type: (LogbookEntry::LOG_TYPES[@entry.log_type].downcase), tail_number: @entry.aircraft.tail_number, email: @invitation.email) %></p>
<div class="card card-body space-y-3">
<%= link_to t(".i_have_an_account_sign"), new_session_path, class: "btn-primary w-full justify-center" %>
</div>
<% unless User.exists?(email_address: @invitation.email) %>
<p class="text-sm text-slate-600"><%= t(".no_account_yet", email: @invitation.email) %></p>
<% end %>
</div>