There should be a single way to check which phone methods are available.
Current Behavior
In some places availability is determined by the presence of 'two_factor.plugins.phonenumber' in INSTALLED_APPS.
Other places take into account also / only values for settings.TWO_FACTOR_CALL_GATEWAY and settings.TWO_FACTOR_SMS_GATEWAY.
Possible Solution
We already have a method registry, which should be the only source of truth.
Expected Behavior
There should be a single way to check which phone methods are available.
Current Behavior
In some places availability is determined by the presence of
'two_factor.plugins.phonenumber'
inINSTALLED_APPS
. Other places take into account also / only values forsettings.TWO_FACTOR_CALL_GATEWAY
andsettings.TWO_FACTOR_SMS_GATEWAY
.Possible Solution
We already have a method registry, which should be the only source of truth.