admin: invite links without a username
Leaving the username empty when creating a user makes the account invite-<hex>; the invitee picks the real username on the invite page (taken names and the invite- prefix are refused). Without an email this gives a plain invite link to share. Assisted-by: Claude:opus-5
This commit is contained in:
parent
9128867a33
commit
78ea9926e7
6 changed files with 57 additions and 4 deletions
7
db/migrations/011_users_choose_username.rb
Normal file
7
db/migrations/011_users_choose_username.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
Sequel.migration do
|
||||
change do
|
||||
# Created as "invite-<hex>"; the invitee picks the real username when
|
||||
# accepting the invite.
|
||||
add_column :users, :choose_username, TrueClass, null: false, default: false
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue