Skip to content

Password Validator #1

@Kartstig

Description

@Kartstig

Background

It would be convenient to incorporate a password validator.

Technical Approach

We should check some standard things:

  • Length: Minimum 8
  • Special Characters: ?
  • Numbers: ?

We could allow a parameter to be passed to determine the strength level to check for:

...
|> validate_password(:password, plaintext, :weak)
...

where

  def validate_phone_field(changeset, field, plaintext, strength \\ :strong) do
    ...
  end

Resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions