Ticket #5695 (closed Bug: fixed)
Incorrect message after bad login attempt
| Reported by: | treaves | Owned by: | hannosch |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.5.1 |
| Component: | Infrastructure | Keywords: | newbie |
| Cc: |
Description
1) Type username/incorrect password into box in left slot. 2) The login page displays, with the username filled in and the password black, with a message about invalid login. 3) enter correct password into password field and click login. 4) The resulting page shows 'You are now logged in', but immeadiatly above it is the orage error box stating 'Login Failed'.
Attachments
Change History
comment:2 Changed 6 years ago by cschaba
It seems that the display of the "LOGIN_FAILED_MESSAGE" comes one request too late. I think the login_form call in the *next* Request the login_form_validate which sets the cookie and then Displays the form, but at this time without the message. The message is displayed on the next page, successfull login or not.
Maybe a redirect to login_form can solve the problem...
comment:3 Changed 6 years ago by hannosch
- Owner changed from plonista to hannosch
I should probably look into this, thx cschaba for the details :)
comment:4 Changed 6 years ago by cschaba
maybe this solves the problem:
found in PloneTool.py Line 713:
"It is also possible to add messages from page templates, as long as they are processed before the portal_message macro is called by the main template...."

