Fix tootctl accounts create
failing because of date-of-birth check (#34663)
This commit is contained in:
parent
3357ae9889
commit
4e2aa78a56
4 changed files with 33 additions and 7 deletions
|
@ -79,7 +79,14 @@ module Mastodon::CLI
|
|||
|
||||
account = Account.new(username: username)
|
||||
password = SecureRandom.hex
|
||||
user = User.new(email: options[:email], password: password, agreement: true, role_id: role_id, confirmed_at: options[:confirmed] ? Time.now.utc : nil, bypass_invite_request_check: true)
|
||||
user = User.new(
|
||||
email: options[:email],
|
||||
password: password,
|
||||
agreement: true,
|
||||
role_id: role_id,
|
||||
confirmed_at: options[:confirmed] ? Time.now.utc : nil,
|
||||
bypass_registration_checks: true
|
||||
)
|
||||
|
||||
if options[:reattach]
|
||||
account = Account.find_local(username) || Account.new(username: username)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue