My User domain class extends SecUser.
User has a property 'email'.
Spring security uses SecUser's 'username' to login.
I need to use 'email' to login. Is there a way to do this?
Edit (from the accepted answer):
I deleted SecUser's username property and added email property.
Then I added this line to Config.groovy:
grails.plugins.springsecurity.userLookup.usernamePropertyName = 'email'