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