I am using Deadbolt 2 with Playframework 2.1.
In the getSubject()
function of my DeadboltHandler
I check the user password and retrieve the user from the database.
Is it possible to access this user in my controllers to avoid retrieving the user twice per request?