Hi, You cannot explicitely "associate" a database field to an email in the principals collection. You have to retrieve an additional information like an email by executing an SQL query on your database and put it as the second principal like I did for the "email" String in the sample (the first principal remains the username). You can put all your information as principals : email, birthdate, ... and so one. Though, I recommend creating an AdditionnalInfo or UserProfile bean which will contains all the additional information (email, birthdate, ...) and be the second principal. It will be easier to use.
Best regards, Jérôme -- View this message in context: http://shiro-user.582556.n2.nabble.com/Getting-more-user-information-tp7559398p7562387.html Sent from the Shiro User mailing list archive at Nabble.com.
