Remove redundant code from register_changeset_ldap
This commit is contained in:
parent
99fbe0418a
commit
1f2d4dd634
2 changed files with 0 additions and 7 deletions
0
changelog.d/remove-redundant-code.skip
Normal file
0
changelog.d/remove-redundant-code.skip
Normal file
|
|
@ -801,13 +801,6 @@ defmodule Pleroma.User do
|
||||||
when is_nil(password) do
|
when is_nil(password) do
|
||||||
params = Map.put_new(params, :accepts_chat_messages, true)
|
params = Map.put_new(params, :accepts_chat_messages, true)
|
||||||
|
|
||||||
params =
|
|
||||||
if Map.has_key?(params, :email) do
|
|
||||||
Map.put_new(params, :email, params[:email])
|
|
||||||
else
|
|
||||||
params
|
|
||||||
end
|
|
||||||
|
|
||||||
struct
|
struct
|
||||||
|> cast(params, [
|
|> cast(params, [
|
||||||
:name,
|
:name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue