Browse Source

fix warning - erl23

221V 1 year ago
parent
commit
09e1819b44
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/avz.erl

+ 5 - 1
src/avz.erl

@@ -23,7 +23,11 @@
 ]).
 ]).
 
 
 
 
-sha(Pass) -> crypto:hmac(wf:config(n4u,hmac,sha256),n2o_secret:secret(),wf:to_binary(Pass)).
+sha(Pass) ->
+  crypto:mac(hmac, wf:config(n4u, hmac, sha256),
+    n2o_secret:secret(),
+    wf:to_binary(Pass) ).
+
 update({K,V},P) -> wf:setkey(K,1,case P of undefined -> []; _P -> _P end,{K,V}).
 update({K,V},P) -> wf:setkey(K,1,case P of undefined -> []; _P -> _P end,{K,V}).
 
 
 coalesce(X,undefined) -> X;
 coalesce(X,undefined) -> X;