mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 00:51:37 +01:00
Use valid email address for first account (#26114)
This commit is contained in:
parent
db310f383d
commit
3abe0fc5c8
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue