Announcement Announcement Module
Collapse
No announcement yet.
Keep username when login fails Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Keep username when login fails

    Is there a way to keep the last entered username in my login jsp when an Acegi login attempt fails, so that the user don't have to enter the username again?
    Code:
    <c:out value="${sessionScope.ACEGI_SECURITY_LAST_EXCEPTION.message}"/>
    <input type='text' id="j_username" name="j_username" value="??what to enter here??"/>

  • #2
    You might want to take a look at AuthenticationProcessingFilter.ACEGI_SECURITY_LAST _USERNAME_KEY. The last attempted username is stored in the session under that key.
    http://www.acegisecurity.org/multipr...T_USERNAME_KEY

    Comment

    Working...
    X