mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 09:22:15 +00:00
feat(auth): explain the plain-HTTP secure-cookie gotcha on login
When the server issues a Secure session cookie but the request arrived over plain HTTP (the common LAN install over http://ip:3000), the browser drops the cookie and the next request dead-ends on a bare "Access token required" — the top source of avoidable install issues. The login response now flags this exact case and the login page shows a localized box explaining the fix (use HTTPS, or set COOKIE_SECURE=false) with a link to the Troubleshooting guide. It only triggers in the real failure case, never for correct HTTPS setups.
This commit is contained in:
@@ -85,5 +85,8 @@ const login: TranslationStrings = {
|
||||
'login.demoHint': 'Спробуйте демо — реєстрація не потрібна',
|
||||
'login.passkey.signIn': 'Увійти за допомогою passkey',
|
||||
'login.passkey.failed': 'Не вдалося увійти за допомогою passkey. Спробуйте ще раз.',
|
||||
'login.insecureCookie.title': "Login won't stick over HTTP",
|
||||
'login.insecureCookie.body': "You’re connecting over plain HTTP, so your browser drops TREK’s secure session cookie — the next request fails with \"Access token required\". Fix: use HTTPS, or for a home-lab set COOKIE_SECURE=false.",
|
||||
'login.insecureCookie.link': "Open the Troubleshooting guide",
|
||||
};
|
||||
export default login;
|
||||
|
||||
Reference in New Issue
Block a user