mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
BUGFIX: rake task for creating an admin was not activating the account
This commit is contained in:
parent
7c3d72f77a
commit
e91f944851
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue