mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-01 17:53:00 +01:00
Fix error when nick registration stanza doesn't contain Value.
SVN Revision: 2394
This commit is contained in:
parent
9d9fca5e19
commit
1262b0e353
@ -742,11 +742,11 @@ process_iq_register_set(Host, From, SubEl, Lang) ->
|
|||||||
{error, ?ERR_BAD_REQUEST};
|
{error, ?ERR_BAD_REQUEST};
|
||||||
_ ->
|
_ ->
|
||||||
case lists:keysearch("nick", 1, XData) of
|
case lists:keysearch("nick", 1, XData) of
|
||||||
false ->
|
{value, {_, [Nick]}} when Nick /= "" ->
|
||||||
|
iq_set_register_info(Host, From, Nick, Lang);
|
||||||
|
_ ->
|
||||||
ErrText = "You must fill in field \"Nickname\" in the form",
|
ErrText = "You must fill in field \"Nickname\" in the form",
|
||||||
{error, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)};
|
{error, ?ERRT_NOT_ACCEPTABLE(Lang, ErrText)}
|
||||||
{value, {_, [Nick]}} ->
|
|
||||||
iq_set_register_info(Host, From, Nick, Lang)
|
|
||||||
end
|
end
|
||||||
end;
|
end;
|
||||||
_ ->
|
_ ->
|
||||||
|
Loading…
Reference in New Issue
Block a user