Closed jugmac00 closed 3 years ago
Added it to the next Zope sprint to clarify what to do...
decision at sprint: redirect / stay at login form, but present the user a helpful message, as in "You have been successfully logged in, but we do not know where to redirect you."
When a user tried to login, following log entry was created
Setup PluggableAuthService 2.4 Zope 4.3 ...
I can only reproduce the problem when I manually delete the value of
came_from
from the URLMaybe that's what the user did.
My login form contains this code
I cannot remember exactly, but I think empty input fields are dropped somewhere in the publishing process?
This could explain why it then "crashes" in PAS'
login
method: https://github.com/zopefoundation/Products.PluggableAuthService/blob/fbaac9f29481d483c8c1b780a464ffa2b8140eb3/Products/PluggableAuthService/plugins/CookieAuthHelper.py#L276Should we test for
came_from
within the login method? Or rely there is some logic in login_form template?I cannot hardcode an URL - as there are more than one instances.
I am also not sure about the control flow when logging in. The
unauthorized
method handles a missingcame_from
but I am not sure how these two methods connect.