From ca7c0aa47c124c3b2b8171623799f737c5b6a136 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 20 Jul 2024 00:59:25 +0100 Subject: [PATCH] Added default avatar to seeder Signed-off-by: snipe --- app/Console/Commands/ResetDemoSettings.php | 1 + database/seeders/SettingsSeeder.php | 1 + 2 files changed, 2 insertions(+) diff --git a/app/Console/Commands/ResetDemoSettings.php b/app/Console/Commands/ResetDemoSettings.php index 9ddade9efb..22508377d7 100644 --- a/app/Console/Commands/ResetDemoSettings.php +++ b/app/Console/Commands/ResetDemoSettings.php @@ -73,6 +73,7 @@ class ResetDemoSettings extends Command $settings->saml_forcelogin = '0'; $settings->saml_slo = null; $settings->saml_custom_settings = null; + $settings->default_avatar = 'default.png'; $settings->save(); diff --git a/database/seeders/SettingsSeeder.php b/database/seeders/SettingsSeeder.php index c90ce52d07..b913caf6a4 100644 --- a/database/seeders/SettingsSeeder.php +++ b/database/seeders/SettingsSeeder.php @@ -36,6 +36,7 @@ class SettingsSeeder extends Seeder $settings->version_footer = 'on'; $settings->support_footer = 'on'; $settings->pwd_secure_min = '8'; + $settings->default_avatar = 'default.png'; $settings->save(); if ($user = User::where('username', '=', 'admin')->first()) {