This content has been marked as final.
Show 1 reply
-
1. Re: How to remove the case sensitive of the login?
thokuest Mar 26, 2010 8:02 PM (in response to nur)Hmm, interesting topic. If I look at the source code of class org.jboss.seam.security.Credentials I would install my own Crendentials component.
The custom Credentials component would look like this:
@Name("org.jboss.seam.security.credentials") @Scope(ScopeType.SESSION) @Install(Install.APPLICATION) @BypassInterceptors public class CustomCredentials extends Credentials { @Override public void setUsername(String username) { super.setUsername(username == null ? null : username.toLowerCase()); } }
I don't know if this is the best solution, but it should work. Hope that helps!