Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password Validator #1

Open
Kartstig opened this issue Jun 26, 2019 · 0 comments
Open

Password Validator #1

Kartstig opened this issue Jun 26, 2019 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Kartstig
Copy link
Owner

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

@Kartstig Kartstig added enhancement New feature or request good first issue Good for newcomers labels Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant