Contraseña de 6 carácteres

This commit is contained in:
santiago.sferco 2024-07-01 12:57:17 -03:00
parent b11499ff2d
commit 3817b52a2f

View File

@ -59,7 +59,7 @@ defmodule Derivantes.Accounts.User do
defp validate_password(changeset, opts) do defp validate_password(changeset, opts) do
changeset changeset
|> validate_required([:password]) |> validate_required([:password])
|> validate_length(:password, min: 12, max: 72) |> validate_length(:password, min: 6, max: 72)
# Examples of additional password validation: # Examples of additional password validation:
# |> validate_format(:password, ~r/[a-z]/, message: "at least one lower case character") # |> validate_format(:password, ~r/[a-z]/, message: "at least one lower case character")
# |> validate_format(:password, ~r/[A-Z]/, message: "at least one upper case character") # |> validate_format(:password, ~r/[A-Z]/, message: "at least one upper case character")