mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Bypass account creation error when password is empty, caused by extauth
This commit is contained in:
parent
46f47db512
commit
de85c1718e
1 changed files with 2 additions and 0 deletions
|
@ -404,6 +404,8 @@ process_user(#xmlel{name = <<"user">>, attrs = Attrs, children = Els},
|
||||||
case ejabberd_auth:try_register(LUser, LServer, Pass) of
|
case ejabberd_auth:try_register(LUser, LServer, Pass) of
|
||||||
ok ->
|
ok ->
|
||||||
process_user_els(Els, State#state{user = LUser});
|
process_user_els(Els, State#state{user = LUser});
|
||||||
|
{error, invalid_password} when (Password == <<>>) ->
|
||||||
|
process_user_els(Els, State#state{user = LUser});
|
||||||
{error, Err} ->
|
{error, Err} ->
|
||||||
stop("Failed to create user '~s': ~p", [Name, Err])
|
stop("Failed to create user '~s': ~p", [Name, Err])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue