update emqttd_auth_mod.erl code format

This commit is contained in:
huangpengju 2017-03-12 11:49:26 +08:00 committed by GitHub
parent bd8b446a54
commit 61a71e7559
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ passwd_hash(sha, Password) ->
hexstring(crypto:hash(sha, Password)); hexstring(crypto:hash(sha, Password));
passwd_hash(sha256, Password) -> passwd_hash(sha256, Password) ->
hexstring(crypto:hash(sha256, Password)); hexstring(crypto:hash(sha256, Password));
passwd_hash(pbkdf2,{Salt,Password,Macfun,Iterations,Dklen}) -> passwd_hash(pbkdf2,{Salt, Password, Macfun, Iterations, Dklen}) ->
{ok,Hexstring} = pbkdf2:pbkdf2(Macfun, Password, Salt, Iterations, Dklen), {ok,Hexstring} = pbkdf2:pbkdf2(Macfun, Password, Salt, Iterations, Dklen),
pbkdf2:to_hex(Hexstring). pbkdf2:to_hex(Hexstring).