mirror of
https://github.com/bitwarden/mobile
synced 2026-01-12 21:43:17 +00:00
* [PM-3606] Fix 2FA for autofill * [PM-3606] Fix autofill when user doesn't have a login method available. * [PM-3606] PR fixes * [PM-3606] Add logout logic to other extension projects * [PM-3606] Move code to base class. * Transform into property instead of field Co-authored-by: Federico Maccaroni <fedemkr@gmail.com> * Remove double ";" Co-authored-by: Federico Maccaroni <fedemkr@gmail.com> * [PM-3606] Fix iOS extension by changing base class of LockPasswordViewController --------- Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
49 lines
1.6 KiB
C#
49 lines
1.6 KiB
C#
using Bit.iOS.Core.Utilities;
|
|
using System;
|
|
using UIKit;
|
|
|
|
namespace Bit.iOS.Extension
|
|
{
|
|
public partial class LockPasswordViewController : Core.Controllers.BaseLockPasswordViewController
|
|
{
|
|
public LockPasswordViewController()
|
|
{
|
|
BiometricIntegritySourceKey = Bit.Core.Constants.iOSExtensionBiometricIntegritySourceKey;
|
|
DismissModalAction = Cancel;
|
|
}
|
|
|
|
public LockPasswordViewController(IntPtr handle)
|
|
: base(handle)
|
|
{
|
|
BiometricIntegritySourceKey = Bit.Core.Constants.iOSExtensionBiometricIntegritySourceKey;
|
|
DismissModalAction = Cancel;
|
|
}
|
|
|
|
public LoadingViewController LoadingController { get; set; }
|
|
public override UINavigationItem BaseNavItem => NavItem;
|
|
public override UIBarButtonItem BaseCancelButton => CancelButton;
|
|
public override UIBarButtonItem BaseSubmitButton => SubmitButton;
|
|
public override Action Success => () => LoadingController.DismissLockAndContinue();
|
|
public override Action Cancel => () => LoadingController.CompleteRequest(null, null);
|
|
|
|
public override UITableView TableView => MainTableView;
|
|
|
|
public override void ViewDidLoad()
|
|
{
|
|
base.ViewDidLoad();
|
|
CancelButton.TintColor = ThemeHelpers.NavBarTextColor;
|
|
SubmitButton.TintColor = ThemeHelpers.NavBarTextColor;
|
|
}
|
|
|
|
partial void SubmitButton_Activated(UIBarButtonItem sender)
|
|
{
|
|
var task = CheckPasswordAsync();
|
|
}
|
|
|
|
partial void CancelButton_Activated(UIBarButtonItem sender)
|
|
{
|
|
Cancel();
|
|
}
|
|
}
|
|
}
|