|
@@ -47,6 +47,7 @@ class _SecuritySectionWidgetState extends State<SecuritySectionWidget> {
|
|
Widget _getSectionOptions(BuildContext context) {
|
|
Widget _getSectionOptions(BuildContext context) {
|
|
final bool? canDisableMFA = UserService.instance.canDisableEmailMFA();
|
|
final bool? canDisableMFA = UserService.instance.canDisableEmailMFA();
|
|
if (canDisableMFA == null) {
|
|
if (canDisableMFA == null) {
|
|
|
|
+ // We don't know if the user can disable MFA yet, so we fetch the info
|
|
UserService.instance.getUserDetailsV2().then(
|
|
UserService.instance.getUserDetailsV2().then(
|
|
(value) => {
|
|
(value) => {
|
|
if (mounted) {setState(() {})}
|
|
if (mounted) {setState(() {})}
|