1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-13 14:53:18 +00:00

copy totp code on autofill

This commit is contained in:
Kyle Spearrin
2017-07-21 11:39:22 -04:00
parent 98e429505c
commit 1124c48c8d
10 changed files with 171 additions and 22 deletions

View File

@@ -191,7 +191,7 @@ namespace Bit.iOS.Extension
}
}
public void CompleteUsernamePasswordRequest(string username, string password)
public void CompleteUsernamePasswordRequest(string username, string password, string totp)
{
NSDictionary itemData = null;
if(_context.ProviderType == UTType.PropertyList)
@@ -227,6 +227,11 @@ namespace Bit.iOS.Extension
Constants.AppExtensionOldPasswordKey, password);
}
if(!string.IsNullOrWhiteSpace(totp))
{
UIPasteboard.General.String = totp;
}
CompleteRequest(itemData);
}