mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +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) ->
|
get_password(User, Server) ->
|
||||||
case mnesia:dirty_read(passwd, {User, Server}) of
|
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}] ->
|
[#passwd{password = Password}] ->
|
||||||
{cache, {ok, Password}};
|
{cache, {ok, Password}};
|
||||||
_ ->
|
_ ->
|
||||||
|
Loading…
Reference in New Issue
Block a user