diff options
| author | altaf-creator <dev@altafcreator.com> | 2026-01-21 20:45:47 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2026-01-21 20:45:47 +0800 |
| commit | 8ccc95368aff70aa9603fbbc659e1465785050a8 (patch) | |
| tree | df450484a69eac3a29dc99623809aec5a3d0c034 /backend | |
| parent | 676c8584bb3f9db8a18718c7827f8ad1086df041 (diff) | |
cookie aint setting anymore what the FUCK MAN
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/main.py b/backend/main.py index cf3edb5..cbd7b10 100644 --- a/backend/main.py +++ b/backend/main.py @@ -505,7 +505,7 @@ def admin_login(data: PlaintextPasswordData, response: fastapi.Response): auth_cookie_str = secrets.token_hex(32) AUTH_MAX_AGE = 60 * 10 # 10 minutes - response.set_cookie(key="admin_auth", value=auth_cookie_str, secure=True, max_age=AUTH_MAX_AGE) + response.set_cookie(key="admin_auth", value=auth_cookie_str, secure=True, max_age=AUTH_MAX_AGE, domain="backend.laundryweb.altafcreator.com", samesite="none") cursor.execute("""INSERT INTO admin_cookies (cookie) VALUES (?);""", (auth_cookie_str,)) conn.commit() cursor.execute("SELECT * FROM admin_cookies") |
