⏪ Login now not use the password as default factor
This commit is contained in:
parent
461f32545a
commit
49bc6b9a98
@ -214,9 +214,6 @@ class _LoginCheckScreen extends HookConsumerWidget {
|
||||
if (!kIsWeb) {
|
||||
String? name;
|
||||
if (Platform.isIOS) {
|
||||
return;
|
||||
// TODO waiting for apple to respond to grant my access to com.apple.developer.device-information.user-assigned-device-name
|
||||
// ignore: dead_code
|
||||
final deviceInfo = await DeviceInfoPlugin().iosInfo;
|
||||
name = deviceInfo.name;
|
||||
} else if (Platform.isAndroid) {
|
||||
@ -388,20 +385,6 @@ class _LoginPickerScreen extends HookConsumerWidget {
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() {
|
||||
if (ticket == null || (factors?.isEmpty ?? true)) return;
|
||||
if (ticket!.blacklistFactors.isEmpty) {
|
||||
Future(() {
|
||||
var password = factors!.where((x) => x.type == 0).firstOrNull;
|
||||
if (password != null) {
|
||||
factorPicked.value = password;
|
||||
performGetFactorCode();
|
||||
}
|
||||
});
|
||||
}
|
||||
return null;
|
||||
}, [ticket, factors]);
|
||||
|
||||
return Column(
|
||||
key: const ValueKey<int>(1),
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
Loading…
x
Reference in New Issue
Block a user