mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Improve auth_mnesia:transform
This commit is contained in:
parent
6a659d7475
commit
af9d642a71
@ -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]) ->
|
||||
|
Loading…
Reference in New Issue
Block a user