Skip to content

Commit

Permalink
chore: remove 2fa components
Browse files Browse the repository at this point in the history
  • Loading branch information
harljo committed Apr 4, 2024
1 parent 724b007 commit ce74823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
2 changes: 1 addition & 1 deletion lib/client/regularAccount.dart
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ class WebFlowAuthModel extends ChangeNotifier {
await GetFlowToken2(userAgentHeader);
await PassUsername(await GetUserName(), userAgentHeader);
await PassPassword(await GetPassword(), userAgentHeader);
if (authCode != null) await Pass2FA(authCode.toString(), userAgentHeader);
//if (authCode != null) await Pass2FA(authCode.toString(), userAgentHeader);
await GetAuthTokenCsrf(userAgentHeader);
await BuildAuthHeader();
} on Exception catch (e) {
Expand Down
19 changes: 1 addition & 18 deletions lib/settings/_account.dart
Original file line number Diff line number Diff line change
Expand Up @@ -100,23 +100,6 @@ class _SettingsAccountFragment extends State<SettingsAccountFragment> {
),
],
),
SelectableText('aG3FDMWVAcy6ccV1Zhz%'),
Flexible(
child: TextField(
controller: multiFactorController,
//style: const TextStyle(fontSize: 16,height:1),
decoration: InputDecoration(
contentPadding: EdgeInsets.fromLTRB(3, 0, 16, 3),
isDense: true,
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(width: 1, color: Theme.of(context).colorScheme.primary),
),
focusedBorder: UnderlineInputBorder(
borderSide: BorderSide(width: 1, color: Theme.of(context).colorScheme.primary),
),
),
),
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Expand All @@ -130,7 +113,7 @@ class _SettingsAccountFragment extends State<SettingsAccountFragment> {
// "Pragma": "no-cache",
"Cache-Control": "no-cache"
// "If-Modified-Since": "Sat, 1 Jan 2000 00:00:00 GMT",
}, authCode: multiFactorController.text);
}, authCode: null);

print(_authHeader);
} catch (e) {
Expand Down

0 comments on commit ce74823

Please sign in to comment.