diff options
author | Evgeny Khramtsov <xramtsov@gmail.com> | 2017-02-14 11:38:05 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-14 11:38:05 +0400 |
commit | a1e45ab56c5405fe2d5ea6a0b9eabc4e3450190d (patch) | |
tree | 502d43545dd01c498bb448ee021ea830e287f865 /src/mod_admin_extra.erl | |
parent | Improve modules start/stop procedures (diff) | |
parent | Use 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.erl | 2 |
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), |