mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Encode in base64 when getting scram data with import_prosody (#1549)
This commit is contained in:
parent
b932afb0cd
commit
1aeaa794e1
@ -113,9 +113,9 @@ maybe_get_scram_auth(Data) ->
|
||||
case proplists:get_value(<<"iteration_count">>, Data, no_ic) of
|
||||
IC when is_float(IC) -> %% A float like 4096.0 is read
|
||||
#scram{
|
||||
storedkey = proplists:get_value(<<"stored_key">>, Data, <<"">>),
|
||||
serverkey = proplists:get_value(<<"server_key">>, Data, <<"">>),
|
||||
salt = proplists:get_value(<<"salt">>, Data, <<"">>),
|
||||
storedkey = jlib:encode_base64(proplists:get_value(<<"stored_key">>, Data, <<"">>)),
|
||||
serverkey = jlib:encode_base64(proplists:get_value(<<"server_key">>, Data, <<"">>)),
|
||||
salt = jlib:encode_base64(proplists:get_value(<<"salt">>, Data, <<"">>)),
|
||||
iterationcount = round(IC)
|
||||
};
|
||||
_ -> <<"">>
|
||||
|
Loading…
Reference in New Issue
Block a user