Thank you very much. 

Your tips and direct link to the source of JdbcRealm.java pointed me in the
right direction. I implemented in my CustomJdbcRealm.java:

* doGetAuthenticationInfo
* buildAuthenticationInfo
* getPasswordForUser


And one modification in shiro.ini. I commented the line:

* jdbcRealm.authenticationQuery

and set the DEFAULT_AUTHENTICATION_QUERY in CustomJdbcRealm.

In the end, I put the ps.setString(2, username) in getPasswordForUser()





--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Can-I-use-both-USER-and-EMAIL-as-login-auth-in-the-query-shiro-ini-s-authenticationQuery-parameter-tp7581286p7581298.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to