-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Short description of the enhancement
This is a request for a couple of enhancements to Password::randomPass().
-
An option for maxLength to apply to the whole generated password. Currently there is no way to control the total length of the generated password when digits and symbols are included. I can't think of a scenario where you wouldn't want the maxLength to apply the whole password, but if there is some need for this then a new option could added for max total password length.
-
An option to generate a password based on the settings of a given FieldtypePassword. It would be useful if as many settings as possible could be pulled from the password field/inputfield (not sure how easy it would be to support the "complexify" setting) so a password could easily be generated to satisfy the settings of a given field.
Related forum topic: https://processwire.com/talk/topic/17329-generate-password-to-satisfy-field-settings/