diff options
author | ThibG <thib@sitedethib.com> | 2020-12-22 17:14:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-22 17:14:32 +0100 |
commit | 1cf2c3a810bba937c7702c342a3ff37c3d37391a (patch) | |
tree | 5e63fbb9e8b975c3b22f84a04ae61e8d6bdf0df7 /lib/tasks | |
parent | 9915d11c0d7a15b6775af8e78fcc4d836368f88d (diff) |
Fix external user creation failing when invite request text is required (#15405)
* Fix external user creation failing when invite request text is required Also fixes tootctl-based user creation. * Add test about invites when invite request text is otherwise required Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/mastodon.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/mastodon.rake b/lib/tasks/mastodon.rake index 9e80989ef..2ad1e778b 100644 --- a/lib/tasks/mastodon.rake +++ b/lib/tasks/mastodon.rake @@ -412,7 +412,7 @@ namespace :mastodon do password = SecureRandom.hex(16) - user = User.new(admin: true, email: email, password: password, confirmed_at: Time.now.utc, account_attributes: { username: username }) + user = User.new(admin: true, email: email, password: password, confirmed_at: Time.now.utc, account_attributes: { username: username }, bypass_invite_request_check: true) user.save(validate: false) prompt.ok "You can login with the password: #{password}" |