2019-06-28 15:21:44 +03:00
|
|
|
using System;
|
|
|
|
using UIKit;
|
|
|
|
|
|
|
|
namespace Bit.iOS.Autofill
|
|
|
|
{
|
|
|
|
public partial class LockPasswordViewController : Core.Controllers.LockPasswordViewController
|
|
|
|
{
|
|
|
|
public LockPasswordViewController(IntPtr handle)
|
|
|
|
: base(handle)
|
2020-10-07 19:18:36 +03:00
|
|
|
{
|
2020-12-01 23:30:23 +03:00
|
|
|
BiometricIntegrityKey = Bit.Core.Constants.iOSAutoFillBiometricIntegrityKey;
|
2020-10-15 21:34:31 +03:00
|
|
|
DismissModalAction = Cancel;
|
2021-06-10 18:57:18 +03:00
|
|
|
autofillExtension = true;
|
2020-10-07 19:18:36 +03:00
|
|
|
}
|
2019-06-28 15:21:44 +03:00
|
|
|
|
|
|
|
public CredentialProviderViewController CPViewController { get; set; }
|
|
|
|
public override UINavigationItem BaseNavItem => NavItem;
|
|
|
|
public override UIBarButtonItem BaseCancelButton => CancelButton;
|
|
|
|
public override UIBarButtonItem BaseSubmitButton => SubmitButton;
|
|
|
|
public override Action Success => () => CPViewController.DismissLockAndContinue();
|
|
|
|
public override Action Cancel => () => CPViewController.CompleteRequest();
|
|
|
|
|
|
|
|
partial void SubmitButton_Activated(UIBarButtonItem sender)
|
|
|
|
{
|
|
|
|
var task = CheckPasswordAsync();
|
|
|
|
}
|
|
|
|
|
|
|
|
partial void CancelButton_Activated(UIBarButtonItem sender)
|
|
|
|
{
|
|
|
|
Cancel();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|