Jan 6th, 2013, 05:03 AM
Spring Roo: validation and spring security
in my entity I have the password field annotated with @ Size (min = 8, max = 50) and the validation works fine. In fact, my purpose is not to allow password greater than 50 characters and less than 8. The approach does not work when I introduce spring security, for example, to save the password databases in sha-256, in fact the password field is created VARCHAR (50), but encrypt sha-256 produces a string 64 characters long. I've also tried to add the annotation @ Column (length = 64) but is ingorata. In this scenario, can I take this approach?
Thank you very much.
Tags for this Thread