GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 93 forks source link

Including `password` constraint on `ApplicationUser` doesn't work #121

Open pledbrook opened 9 years ago

pledbrook commented 9 years ago

In listing 3.7, we import the constraints from User into ApplicationUser. Unfortunately, the password constraint has a custom validator that expects a loginId property, which doesn't exist on ApplicationUser. This results in a MissingPropertyException when you attempt to save a new ApplicationUser instance with a non-empty password. We should warn about this in the text.