I'm trying to create a custom login error message but clearly I'm missing something. Here's what I have:
The check for uniqueness does work as expected. But I wanted to change from the default message
default.not.unique.message in
i18n/messages.properties to my own message. I added the following line:
as explained at
http://grails.org/Validation+Reference#ValidationReference-nullable.
But it still seems to be using the default message
Property [username] of class [class User] with value [mark1] must be unique.
Any ideas?
--Mark