Results 1 to 2 of 2

Thread: Keep username when login fails

  1. #1

    Default 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. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •