25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

Improve auth_mnesia:transform

This commit is contained in:
Paweł Chmielowski 2020-12-10 14:02:28 +01:00
parent 6a659d7475
commit af9d642a71

View File

@ -277,8 +277,9 @@ transform(#passwd{us = {U, S}, password = Password} = P)
plain ->
P
end;
transform(#passwd{password = Password} = P)
when is_record(Password, scram) ->
transform(#passwd{password = {scram, _, _, _, _}} = P) ->
P;
transform(#passwd{password = #scram{}} = P) ->
P.
import(LServer, [LUser, Password, _TimeStamp]) ->