footer sign-in link; sign-in, invite and reset land on the console
One quiet 'Sign in · leaders & families' in the public footer, after the site's own links and before Join, which stays the only call to action. Nothing on the public site pointed at /login before; the only ways in were typing the URL or an invite link. A fresh sign-in, an accepted invite and a used reset link now land on /leaders/, which sends a member on to Family and a leader to Summary. tests/smoke_identity.py 123 -> 125.
This commit is contained in:
+2
-2
@@ -220,7 +220,7 @@ def invite_accept(request: Request, token: str, full_name: str = Form(""),
|
||||
|
||||
tok = identity.start_session(person["id"], ip=_client_ip(request),
|
||||
user_agent=request.headers.get("user-agent"))
|
||||
resp = RedirectResponse(url="/account", status_code=303)
|
||||
resp = RedirectResponse(url="/leaders/", status_code=303)
|
||||
resp.set_cookie(COOKIE, tok, max_age=identity.SESSION_ABSOLUTE_DAYS * 86400,
|
||||
httponly=True, secure=COOKIE_SECURE, samesite="lax", path="/")
|
||||
return resp
|
||||
@@ -395,7 +395,7 @@ def reset_accept(request: Request, token: str, password: str = Form(""), confirm
|
||||
status_code=e.status)
|
||||
tok = identity.start_session(person["id"], ip=_client_ip(request),
|
||||
user_agent=request.headers.get("user-agent"))
|
||||
resp = RedirectResponse(url="/account", status_code=303)
|
||||
resp = RedirectResponse(url="/leaders/", status_code=303)
|
||||
resp.set_cookie(COOKIE, tok, max_age=identity.SESSION_ABSOLUTE_DAYS * 86400,
|
||||
httponly=True, secure=COOKIE_SECURE, samesite="lax", path="/")
|
||||
return resp
|
||||
|
||||
Reference in New Issue
Block a user