@@ -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}).
coalesce(X,undefined) -> X;