Skip to content

Commit

Permalink
crypto:hmac is removed in Erlang/OTP 24, use our wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Mar 4, 2021
1 parent c45b526 commit 3c24874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/stundisco_tests.erl
Expand Up @@ -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(),
Expand Down

0 comments on commit 3c24874

Please sign in to comment.