I tried to find out how I can customize/override the user password validation process but I didn’t find a proper function to override. I found these 3 at https://getkirby.com/docs/reference/objects/user?advanced=yes :
None of these 3 validates the password according to the criterias when you want to change the current password of an user. I also checked the validators but there is no user password validator. So what do I have to override to apply custom password rules like length, special characters, etc.?
Is the proper way to use a
user.changePassword:before hook and then throw an exception if the new password doesn’t fulfills the criterias to prevent the password change?
A general question about hooks: Are hooks used by Kirby 3’s core or are they non-implemented? Like does Kirby 3 use any hook itself or are they just provided for the customers/developers of customer projects? I’m asking because I think that’s the only place left I could look at to find the validation of Kirby 3 user passwords but I don’t find any source code of the hook if I search for
user.changePassword:before via Github’s repository search and thus I’m not sure about this.