mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
feat: extract MediaController, wire into Dispatcher, delete media.php
This commit is contained in:
11
app/storage/migrations/013_admin_password.sql
Normal file
11
app/storage/migrations/013_admin_password.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
-- Migration 013: Store admin password hash in site_settings
|
||||
--
|
||||
-- Previously stored in config/admin_credentials.php as the constant ADMIN_PASSWORD_HASH.
|
||||
-- Now stored alongside SMTP credentials in the site_settings key-value table.
|
||||
--
|
||||
-- After applying this migration, import your existing hash manually:
|
||||
-- UPDATE site_settings SET value = '$2y$12$...' WHERE key = 'admin_password_hash';
|
||||
-- Or simply set a new one via the admin panel UI.
|
||||
|
||||
INSERT OR IGNORE INTO site_settings (key, value) VALUES
|
||||
('admin_password_hash', '');
|
||||
Reference in New Issue
Block a user