diff options
author | Alexey Shchepin <alexey@process-one.net> | 2017-03-14 02:31:51 +0300 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2017-03-14 02:31:51 +0300 |
commit | 069d28b1eda5384a67fa5fb2ac14b7cdc86eec31 (patch) | |
tree | c5c7b26c6703746ae128eccae264ead5a3d44ff2 /src/ejabberd_service.erl | |
parent | Fix handling of xmlrpc request without authentication structure (diff) |
Get rid of p1_sha calls
Diffstat (limited to '')
-rw-r--r-- | src/ejabberd_service.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ejabberd_service.erl b/src/ejabberd_service.erl index 16cdf5ca9..716606b4c 100644 --- a/src/ejabberd_service.erl +++ b/src/ejabberd_service.erl @@ -78,13 +78,13 @@ init([State, Opts]) -> fun({H, Os}, D) -> P = proplists:get_value( password, Os, - p1_sha:sha(randoms:bytes(20))), + str:sha(randoms:bytes(20))), dict:store(H, P, D) end, dict:new(), HOpts); false -> Pass = proplists:get_value( password, Opts, - p1_sha:sha(randoms:bytes(20))), + str:sha(randoms:bytes(20))), dict:from_list([{global, Pass}]) end, CheckFrom = gen_mod:get_opt(check_from, Opts, |