I would like to do StringLength validator in the users model on passwords entered in a view for registration. Minimum of 6 characters Max 60. The received password string is hashed in the users controller before it is saved to the model, so it is always 59 characters in length due hashing. So even if the users picks a password with 2 characters, it will pass stringlength constraints.
What should I do? I wish to use a model validator.