mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Merge pull request #190 from hamano/mod_register_web_response_404
mod_register_web should response 404 instead of process crash.
This commit is contained in:
commit
65519cf262
@ -140,7 +140,10 @@ process([<<"change_password">>],
|
||||
list_to_binary([?T(<<"There was an error changing the password: ">>),
|
||||
?T(get_error_text(Error))]),
|
||||
{404, [], ErrorText}
|
||||
end.
|
||||
end;
|
||||
|
||||
process(Path, _Request) ->
|
||||
{404, [], "Not Found"}.
|
||||
|
||||
%%%----------------------------------------------------------------------
|
||||
%%% CSS
|
||||
|
Loading…
Reference in New Issue
Block a user