mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 01:39:35 +02:00
crypto:hmac is removed in Erlang/OTP 24, use our wrapper
This commit is contained in:
parent
c45b526ec3
commit
3c248745e5
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ single_test(T) ->
|
|||
|
||||
check_password(Username, Password) ->
|
||||
Secret = <<"cryptic">>,
|
||||
Password == base64:encode(crypto:hmac(sha, Secret, Username)).
|
||||
Password == base64:encode(misc:crypto_hmac(sha, Secret, Username)).
|
||||
|
||||
check_expires({_, _, _} = Expires) ->
|
||||
Now = {MegaSecs, Secs, MicroSecs} = erlang:timestamp(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue