Allow to change an user's password through the users.modify mix task
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -107,6 +107,7 @@ defmodule Mobilizon.Users.User do
|
||||
|> validate_required(@required_attrs)
|
||||
|> unique_constraint(:email, message: dgettext("errors", "This email is already used."))
|
||||
|> Checker.validate_changeset()
|
||||
|> hash_password()
|
||||
|> validate_length(:password,
|
||||
min: 6,
|
||||
max: 200,
|
||||
|
||||
Reference in New Issue
Block a user