mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:33:24 +08:00
Change the email address of the admin user created by rake db:seed:welcome so we don't get all the emails. Everyone needs to change the email address of their admin user.
This commit is contained in:
parent
281a08a99f
commit
4de0c58b83
|
@ -23,7 +23,7 @@ task "db:seed:welcome" => :environment do
|
|||
ActiveRecord::Base.transaction do
|
||||
begin
|
||||
# Not using admin:create cause it will become uneccessary complicated between handling passed args and user input
|
||||
admin = User.create!(email: "team@discourse.org", username: "forumadmin", password: "password")
|
||||
admin = User.create!(email: "change_me@example.com", username: "forumadmin", password: "password")
|
||||
admin.grant_admin!
|
||||
admin.change_trust_level!(TrustLevel.levels.max_by{|k, v| v}[0])
|
||||
admin.email_tokens.update_all(confirmed: true)
|
||||
|
|
Loading…
Reference in New Issue
Block a user