25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-10-21 15:41:51 +02: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 -> plain ->
P P
end; end;
transform(#passwd{password = Password} = P) transform(#passwd{password = {scram, _, _, _, _}} = P) ->
when is_record(Password, scram) -> P;
transform(#passwd{password = #scram{}} = P) ->
P. P.
import(LServer, [LUser, Password, _TimeStamp]) -> import(LServer, [LUser, Password, _TimeStamp]) ->