aboutsummaryrefslogtreecommitdiff
path: root/src/mod_legacy_auth.erl
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2017-03-14 02:31:51 +0300
committerAlexey Shchepin <alexey@process-one.net>2017-03-14 02:31:51 +0300
commit069d28b1eda5384a67fa5fb2ac14b7cdc86eec31 (patch)
treec5c7b26c6703746ae128eccae264ead5a3d44ff2 /src/mod_legacy_auth.erl
parentFix handling of xmlrpc request without authentication structure (diff)
Get rid of p1_sha calls
Diffstat (limited to '')
-rw-r--r--src/mod_legacy_auth.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_legacy_auth.erl b/src/mod_legacy_auth.erl
index 49e210ec6..5a4ff9108 100644
--- a/src/mod_legacy_auth.erl
+++ b/src/mod_legacy_auth.erl
@@ -111,7 +111,7 @@ authenticate(#{stream_id := StreamID, server := Server,
resource = R}]} = IQ) ->
P = if is_binary(P0) -> P0; true -> <<>> end,
D = if is_binary(D0) -> D0; true -> <<>> end,
- DGen = fun (PW) -> p1_sha:sha(<<StreamID/binary, PW/binary>>) end,
+ DGen = fun (PW) -> str:sha(<<StreamID/binary, PW/binary>>) end,
JID = jid:make(U, Server, R),
case JID /= error andalso
acl:access_matches(Access,