Complete Two-Factor Authentication for Django providing the easiest integration into most Django projects.
1.71k
stars
448
forks
source link
PhoneMethodBase.get_devices only gets devices that are marked as backup #659
Closed
jpaniagualaconich closed 1 year ago
MethodBase.get_devices
semantics indicate that all user devices that are handled by the method should be retrieved.Expected Behavior
It should return all instances of
PhoneDevice
that belong to the user.Current Behavior
Since it depends on
two_factor.plugins.phonenumber.utils.backup_phones
only instances named'backup'
are considered.