mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
copy totp code. derp
This commit is contained in:
parent
f9028245d8
commit
73b2ae71a9
1 changed files with 9 additions and 2 deletions
|
@ -3,6 +3,7 @@ using Bit.App.Abstractions;
|
|||
using Bit.App.Repositories;
|
||||
using Bit.App.Resources;
|
||||
using Bit.App.Services;
|
||||
using Bit.App.Utilities;
|
||||
using Bit.iOS.Autofill.Models;
|
||||
using Bit.iOS.Core;
|
||||
using Bit.iOS.Core.Services;
|
||||
|
@ -233,9 +234,15 @@ namespace Bit.iOS.Autofill
|
|||
return;
|
||||
}
|
||||
|
||||
var totpKey = cipher.Login.Totp?.Decrypt(cipher.OrganizationId);
|
||||
string totpCode = null;
|
||||
if(!string.IsNullOrWhiteSpace(totpKey))
|
||||
{
|
||||
totpCode = Crypto.Totp(totpKey);
|
||||
}
|
||||
|
||||
CompleteRequest(cipher.Login.Username?.Decrypt(cipher.OrganizationId),
|
||||
cipher.Login.Password?.Decrypt(cipher.OrganizationId),
|
||||
cipher.Login.Totp?.Decrypt(cipher.OrganizationId));
|
||||
cipher.Login.Password?.Decrypt(cipher.OrganizationId), totpCode);
|
||||
}
|
||||
|
||||
private void CheckLock(Action notLockedAction)
|
||||
|
|
Loading…
Reference in a new issue