mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Add hash to scramed password stored in mnesia by earlier version
This commit is contained in:
parent
1dc0ecd1e9
commit
e5cad9be65
@ -180,6 +180,9 @@ count_users(Server, _) ->
|
||||
|
||||
get_password(User, Server) ->
|
||||
case mnesia:dirty_read(passwd, {User, Server}) of
|
||||
[#passwd{password = {scram, SK, SEK, Salt, IC}}] ->
|
||||
{cache, {ok, #scram{storedkey = SK, serverkey = SEK,
|
||||
salt = Salt, hash = sha, iterationcount = IC}}};
|
||||
[#passwd{password = Password}] ->
|
||||
{cache, {ok, Password}};
|
||||
_ ->
|
||||
|
Loading…
Reference in New Issue
Block a user