diff --git a/app/Events/Load_config.php b/app/Events/Load_config.php index 974330ddf..c08bfa857 100644 --- a/app/Events/Load_config.php +++ b/app/Events/Load_config.php @@ -70,7 +70,8 @@ class Load_config // If database is not migrated and we're configured to use database sessions, // temporarily fall back to file-based sessions to allow migrations to complete. - // Once migrations run, subsequent requests will use database sessions. + // Once migrations run, the user must re-authenticate (session is destroyed in + // load_config() when migrations are pending). if (!$isDbMigrated && $sessionConfig->driver === DatabaseHandler::class) { $sessionConfig = clone $sessionConfig; $sessionConfig->driver = FileHandler::class; diff --git a/app/Language/en/Login.php b/app/Language/en/Login.php index 0eb94004e..000360dea 100644 --- a/app/Language/en/Login.php +++ b/app/Language/en/Login.php @@ -9,6 +9,9 @@ return [ "login" => "Login", "logout" => "Logout", "migration_needed" => "A database migration to {0} will start after login.", + "migration_required" => "Database Migration Required", + "migration_auth_message" => "Administrator credentials are required to authorize the database migration to version {0}. Please login to proceed.", + "migration_complete_redirect" => "Migration complete. Redirecting to login...", "password" => "Password", "required_username" => "The username field is required.", "username" => "Username", diff --git a/app/Views/login.php b/app/Views/login.php index b7c32ce45..b79e8c89f 100644 --- a/app/Views/login.php +++ b/app/Views/login.php @@ -47,7 +47,14 @@
-

+ +

+
+ +
+ +

+ getErrors() as $error): ?>
@@ -55,11 +62,6 @@
- -
- -
-
> @@ -96,7 +98,9 @@ } ?>
- +