Skip to content

Commit

Permalink
Fix admin account created by mastodon:setup not being auto-approved (
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and noellabo committed Jun 1, 2024
1 parent 99be966 commit bc5e76f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/mastodon.rake
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ namespace :mastodon do

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)
user.approve!

prompt.ok "You can login with the password: #{password}"
prompt.warn 'You can change your password once you login.'
Expand Down

0 comments on commit bc5e76f

Please sign in to comment.