mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-12 21:52:07 +02:00
Don't show HTTP request in logs, because reveals password (EJAB-1231)
This commit is contained in:
parent
9476d8a2c3
commit
4bbf6684b4
|
@ -188,8 +188,8 @@ process(["server", SHost | RPath] = Path, #request{auth = Auth, lang = Lang, hos
|
||||||
[{"WWW-Authenticate", "basic realm=\"ejabberd\""}],
|
[{"WWW-Authenticate", "basic realm=\"ejabberd\""}],
|
||||||
ejabberd_web:make_xhtml([?XCT("h1", "Unauthorized")])};
|
ejabberd_web:make_xhtml([?XCT("h1", "Unauthorized")])};
|
||||||
{unauthorized, Error} ->
|
{unauthorized, Error} ->
|
||||||
?WARNING_MSG("Access ~p failed with error: ~p~n~p",
|
?WARNING_MSG("Access ~p failed with error: ~p",
|
||||||
[Auth, Error, Request]),
|
[Auth, Error]),
|
||||||
{401,
|
{401,
|
||||||
[{"WWW-Authenticate",
|
[{"WWW-Authenticate",
|
||||||
"basic realm=\"auth error, retry login to ejabberd\""}],
|
"basic realm=\"auth error, retry login to ejabberd\""}],
|
||||||
|
@ -211,8 +211,8 @@ process(RPath, #request{auth = Auth, lang = Lang, host = HostHTTP, method = Meth
|
||||||
[{"WWW-Authenticate", "basic realm=\"ejabberd\""}],
|
[{"WWW-Authenticate", "basic realm=\"ejabberd\""}],
|
||||||
ejabberd_web:make_xhtml([?XCT("h1", "Unauthorized")])};
|
ejabberd_web:make_xhtml([?XCT("h1", "Unauthorized")])};
|
||||||
{unauthorized, Error} ->
|
{unauthorized, Error} ->
|
||||||
?WARNING_MSG("Access ~p failed with error: ~p~n~p",
|
?WARNING_MSG("Access ~p failed with error: ~p",
|
||||||
[Auth, Error, Request]),
|
[Auth, Error]),
|
||||||
{401,
|
{401,
|
||||||
[{"WWW-Authenticate",
|
[{"WWW-Authenticate",
|
||||||
"basic realm=\"auth error, retry login to ejabberd\""}],
|
"basic realm=\"auth error, retry login to ejabberd\""}],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user