Merge branch 'master' of github.com:bitwarden/mobile

This commit is contained in:
Kyle Spearrin 2018-09-21 12:45:16 -04:00
commit 225b8b8cd8

View file

@ -55,7 +55,6 @@ namespace Bit.iOS.Autofill
{ {
_context.ServiceIdentifiers = serviceIdentifiers; _context.ServiceIdentifiers = serviceIdentifiers;
_context.UrlString = serviceIdentifiers[0].Identifier; _context.UrlString = serviceIdentifiers[0].Identifier;
base.PrepareCredentialList(serviceIdentifiers);
var authService = Resolver.Resolve<IAuthService>(); var authService = Resolver.Resolve<IAuthService>();
if(!authService.IsAuthenticated) if(!authService.IsAuthenticated)
@ -89,8 +88,6 @@ namespace Bit.iOS.Autofill
public override void ProvideCredentialWithoutUserInteraction(ASPasswordCredentialIdentity credentialIdentity) public override void ProvideCredentialWithoutUserInteraction(ASPasswordCredentialIdentity credentialIdentity)
{ {
base.ProvideCredentialWithoutUserInteraction(credentialIdentity);
bool canGetCredentials = false; bool canGetCredentials = false;
var authService = Resolver.Resolve<IAuthService>(); var authService = Resolver.Resolve<IAuthService>();
if(authService.IsAuthenticated) if(authService.IsAuthenticated)
@ -104,7 +101,7 @@ namespace Bit.iOS.Autofill
{ {
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); this.ExtensionContext.CancelRequest(err);
return; return;
} }
_context.CredentialIdentity = credentialIdentity; _context.CredentialIdentity = credentialIdentity;
@ -146,7 +143,6 @@ namespace Bit.iOS.Autofill
public override void PrepareInterfaceForExtensionConfiguration() public override void PrepareInterfaceForExtensionConfiguration()
{ {
base.PrepareInterfaceForExtensionConfiguration();
var authService = Resolver.Resolve<IAuthService>(); var authService = Resolver.Resolve<IAuthService>();
if(authService.IsAuthenticated) if(authService.IsAuthenticated)
{ {