Store cross-app cart_sid on login for cart adoption
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 43s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 43s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -49,6 +49,9 @@ def register(url_prefix="/auth"):
|
|||||||
@auth_bp.get("/login/")
|
@auth_bp.get("/login/")
|
||||||
async def login_form():
|
async def login_form():
|
||||||
store_login_redirect_target()
|
store_login_redirect_target()
|
||||||
|
cross_cart_sid = request.args.get("cart_sid")
|
||||||
|
if cross_cart_sid:
|
||||||
|
qsession["cart_sid"] = cross_cart_sid
|
||||||
if g.get("user"):
|
if g.get("user"):
|
||||||
return redirect(federation_url("/"))
|
return redirect(federation_url("/"))
|
||||||
return await render_template("auth/login.html")
|
return await render_template("auth/login.html")
|
||||||
|
|||||||
2
shared
2
shared
Submodule shared updated: 07aa2e2be9...1c1ab3576f
Reference in New Issue
Block a user