mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Fix SCRAM auth of uppercase passwords (EJAB-1196)
This commit is contained in:
parent
7ae7d6315f
commit
da555fb908
@ -37,8 +37,9 @@
|
|||||||
client_key/2
|
client_key/2
|
||||||
]).
|
]).
|
||||||
|
|
||||||
|
%% ejabberd doesn't implement SASLPREP, so we use the similar RESOURCEPREP instead
|
||||||
salted_password(Password, Salt, IterationCount) ->
|
salted_password(Password, Salt, IterationCount) ->
|
||||||
hi(jlib:nameprep(Password), Salt, IterationCount).
|
hi(jlib:resourceprep(Password), Salt, IterationCount).
|
||||||
|
|
||||||
client_key(SaltedPassword) ->
|
client_key(SaltedPassword) ->
|
||||||
crypto:sha_mac(SaltedPassword, "Client Key").
|
crypto:sha_mac(SaltedPassword, "Client Key").
|
||||||
|
Loading…
Reference in New Issue
Block a user