aboutsummaryrefslogtreecommitdiff
path: root/src/mod_admin_extra.erl
diff options
context:
space:
mode:
authorEvgeny Khramtsov <xramtsov@gmail.com>2017-02-14 11:38:05 +0400
committerGitHub <noreply@github.com>2017-02-14 11:38:05 +0400
commita1e45ab56c5405fe2d5ea6a0b9eabc4e3450190d (patch)
tree502d43545dd01c498bb448ee021ea830e287f865 /src/mod_admin_extra.erl
parentImprove modules start/stop procedures (diff)
parentUse crypto:hash/2 function (diff)
Merge pull request #1539 from lemenkov/use_crypto_sha
RFE: Use crypto:hash/2 function
Diffstat (limited to 'src/mod_admin_extra.erl')
-rw-r--r--src/mod_admin_extra.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl
index 472e9fbe3..9139f1e47 100644
--- a/src/mod_admin_extra.erl
+++ b/src/mod_admin_extra.erl
@@ -734,7 +734,7 @@ get_md5(AccountPass) ->
|| X <- binary_to_list(erlang:md5(AccountPass))]).
get_sha(AccountPass) ->
iolist_to_binary([io_lib:format("~2.16.0B", [X])
- || X <- binary_to_list(p1_sha:sha1(AccountPass))]).
+ || X <- binary_to_list(crypto:hash(sha, AccountPass))]).
num_active_users(Host, Days) ->
DB_Type = gen_mod:db_type(Host, mod_last),