forked from AkkomaGang/akkoma
user: put default user info when registering a user
This commit is contained in:
parent
ec1ec32f20
commit
956f3c75ca
1 changed files with 1 additions and 0 deletions
|
@ -177,6 +177,7 @@ def register_changeset(struct, params \\ %{}) do
|
|||
|> validate_format(:email, @email_regex)
|
||||
|> validate_length(:bio, max: 1000)
|
||||
|> validate_length(:name, min: 1, max: 100)
|
||||
|> put_change(:info, %Pleroma.User.Info{})
|
||||
|
||||
if changeset.valid? do
|
||||
hashed = Pbkdf2.hashpwsalt(changeset.changes[:password])
|
||||
|
|
Loading…
Reference in a new issue