Skip to content

Enhancements for Password::randomPass() #121

@Toutouwai

Description

@Toutouwai

Short description of the enhancement

This is a request for a couple of enhancements to Password::randomPass().

  1. 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.

  2. 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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions