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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user