fix(backup): show explicit sign-in prompt after database restore
Restoring a backup replaces the database, invalidating the database-backed session (Auth.js session strategy: database). The old code silently reloaded the page, leaving users on an empty board or a login screen with no context. Replace the opaque reload with an explicit completion state that informs the user their session was invalidated and auto-redirects to the sign-in page (bypassing bfcache so the stale board cannot be restored).
This commit is contained in:
3 files changed
+48
-6
No files matched your search
@@ -5276,7 +5276,8 @@
|
||||
},
|
||||
"complete": {
|
||||
"title": "Restore Complete",
|
||||
"message": "Database has been restored successfully. The server is restarting — please refresh the page in a few seconds."
|
||||
"message": "Database has been restored successfully and the server has restarted. Your previous session was invalidated, so you need to sign in again to see the restored board.",
|
||||
"button": "Sign in now"
|
||||
},
|
||||
"failed": {
|
||||
"title": "Restore Failed"
|
||||
|
||||
Reference in new issue
Block a user