1
0
Fork 0
forked from fedi/mastodon

Use valid email address for first account (#26114)

This commit is contained in:
Christian Schmidt 2023-07-23 15:58:19 +02:00 committed by GitHub
parent db310f383d
commit 3abe0fc5c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
if Rails.env.development?
domain = ENV['LOCAL_DOMAIN'] || Rails.configuration.x.local_domain
domain = domain.gsub(/:\d+$/, '')
admin = Account.where(username: 'admin').first_or_initialize(username: 'admin')
admin.save(validate: false)