Use valid email address for first account (#26114)

lolsob-rspec
Christian Schmidt 2023-07-23 15:58:19 +02:00 committed by GitHub
parent 5cc1f7e73c
commit 45950c70a9
1 changed files with 1 additions and 0 deletions

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)