Skip to content

Commit aa4b938

Browse files
committed
After review 1
1 parent e08058d commit aa4b938

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

config/parameters.yml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ parameters:
8787
env(MESSAGING_MAX_PROCESS_TIME): '600'
8888

8989
phplist.admin.password: '%%env(PHPLIST_ADMIN_PASSWORD)%%'
90-
env(PHPLIST_ADMIN_PASSWORD): 'password'
90+
env(PHPLIST_ADMIN_PASSWORD): ''

src/Migrations/Version20251103SeedInitialAdmin.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public function up(Schema $schema): void
4040
$password = getenv('PHPLIST_ADMIN_PASSWORD') ?: '';
4141
}
4242

43+
$this->abortIf(trim($password) === '', 'Set PHPLIST_ADMIN_PASSWORD before running this migration.');
44+
4345
$this->addSql(<<<'SQL'
4446
INSERT INTO phplist_admin (id, created, modified, loginname, namelc, email, password, passwordchanged, disabled, superuser, privileges)
4547
VALUES (1, NOW(), NOW(), 'admin', 'admin', '[email protected]', :hash, CURRENT_DATE, FALSE, TRUE, :privileges)

0 commit comments

Comments
 (0)