about summary refs log tree commit diff
path: root/lib/tasks
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-12-23 14:33:47 +0100
committerGitHub <noreply@github.com>2020-12-23 14:33:47 +0100
commit225c934a1b66e2fcbedbda7936666c1ca3c9a04b (patch)
treed71a57d5f5b6bd864ec11cc1c914a6c3b30ba612 /lib/tasks
parent81f4c550b2ed305f39f344d10289b38625f70bf7 (diff)
parent537afa00f35dbaa98cbff284683317b411104a82 (diff)
Merge pull request #1481 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/mastodon.rake2
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}"