这是indexloc提供的服务,不要输入任何密码
Skip to content

validate_secure_password/2 #3

@danielberkompas

Description

@danielberkompas

Authority.Ecto.Changeset.validate_secure_password/2 would validate that a password meets minimum security requirements. Presumably, these would include length and symbol checks.

# Check that the password meets agreed-upon password strength checks
validate_secure_password(changeset, :password)

The checks could be configurable, or we could just assume the "best" ones and let you fall back on the built in Ecto functions if you don't like it.

Original: infinitered/authority#11

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions