mirror of
https://github.com/discourse/discourse.git
synced 2025-04-16 19:39:03 +08:00
BUGFIX: rake task for creating an admin was not activating the account
This commit is contained in:
parent
7c3d72f77a
commit
e91f944851
@ -20,4 +20,5 @@ task "admin:create" => :environment do
|
||||
admin.grant_admin!
|
||||
admin.change_trust_level!(TrustLevel.levels.max_by{|k, v| v}[0])
|
||||
admin.email_tokens.update_all confirmed: true
|
||||
admin.activate
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user