mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
formatting
This commit is contained in:
parent
b0c6c09cea
commit
24304c2f55
1 changed files with 18 additions and 18 deletions
|
@ -26,8 +26,7 @@ namespace Bit.iOS.Autofill
|
||||||
private IGoogleAnalyticsService _googleAnalyticsService;
|
private IGoogleAnalyticsService _googleAnalyticsService;
|
||||||
|
|
||||||
public CredentialProviderViewController(IntPtr handle) : base(handle)
|
public CredentialProviderViewController(IntPtr handle) : base(handle)
|
||||||
{
|
{ }
|
||||||
}
|
|
||||||
|
|
||||||
public override void ViewDidLoad()
|
public override void ViewDidLoad()
|
||||||
{
|
{
|
||||||
|
@ -101,7 +100,8 @@ namespace Bit.iOS.Autofill
|
||||||
canGetCredentials = lockType == App.Enums.LockType.None;
|
canGetCredentials = lockType == App.Enums.LockType.None;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!canGetCredentials) {
|
if(!canGetCredentials)
|
||||||
|
{
|
||||||
var err = new NSError(new NSString("ASExtensionErrorDomain"),
|
var err = new NSError(new NSString("ASExtensionErrorDomain"),
|
||||||
Convert.ToInt32(ASExtensionErrorCode.UserInteractionRequired), null);
|
Convert.ToInt32(ASExtensionErrorCode.UserInteractionRequired), null);
|
||||||
ExtensionContext.CancelRequest(err);
|
ExtensionContext.CancelRequest(err);
|
||||||
|
@ -216,7 +216,8 @@ namespace Bit.iOS.Autofill
|
||||||
{
|
{
|
||||||
DismissViewController(false, () =>
|
DismissViewController(false, () =>
|
||||||
{
|
{
|
||||||
if(_context.CredentialIdentity != null) {
|
if(_context.CredentialIdentity != null)
|
||||||
|
{
|
||||||
ProvideCredential();
|
ProvideCredential();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -236,8 +237,7 @@ namespace Bit.iOS.Autofill
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
CompleteRequest(
|
CompleteRequest(cipher.Login.Username?.Decrypt(cipher.OrganizationId),
|
||||||
cipher.Login.Username?.Decrypt(cipher.OrganizationId),
|
|
||||||
cipher.Login.Password?.Decrypt(cipher.OrganizationId),
|
cipher.Login.Password?.Decrypt(cipher.OrganizationId),
|
||||||
cipher.Login.Totp?.Decrypt(cipher.OrganizationId));
|
cipher.Login.Totp?.Decrypt(cipher.OrganizationId));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue