I want to display the info about the user logged in like his details etc given during sign up ...how to do it ?? As iam new to grails plz help! iam using Spring security plu
Define (in a controller, or service where you need user id):
SpringSecurityService springSecurityService
and try:
springSecurityService.currentUser.id //loads user from db, and returns its id
or:
springSecurityService.principal.id //if you need just id