On 9/5/07, nmall <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>  Is the username case sensitive in the login.jsp.  Also, I found a bug where
> once a case incorrect name and password is given, even if the case of the
> username is changed to the right one, it ignores the input and gives an
> error. Any idea why this would happen.

The username is case sensitive. Here's the Hibernate HQL:

    public UserDetails loadUserByUsername(String username) throws
UsernameNotFoundException {
        List users = getHibernateTemplate().find("from User where
username=?", username);
        if (users == null || users.isEmpty()) {
            throw new UsernameNotFoundException("user '" + username +
"' not found...");
        } else {
            return (UserDetails) users.get(0);
        }    }

>
>  Also, why is the struts2 tag <s:textfield> not used in the Struts2 version
> of appfuse.

Because the login page is served up by Acegi and is generic across all
frameworks. The form submits to /j_security_check (where Acegi's
filter is mapped to) rather than to an Action. If we submitted to an
Action/Controller/Page, etc. we'd have to programmatically talk to
Acegi for each web framework. KISS is more important IMO. With that
being said, we could change the login URL to be /login.html and use
the UrlRewriteFilter to forward to login.jsp and make things a bit
less transparent.

Matt

>
> Thanks for any pointers!
>
> --
> View this message in context: 
> http://www.nabble.com/login.jsp-tf4389461s2369.html#a12514976
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to