mirror of
https://github.com/bitwarden/mobile
synced 2025-12-14 23:33:34 +00:00
copy totp code. derp
This commit is contained in:
@@ -3,6 +3,7 @@ using Bit.App.Abstractions;
|
|||||||
using Bit.App.Repositories;
|
using Bit.App.Repositories;
|
||||||
using Bit.App.Resources;
|
using Bit.App.Resources;
|
||||||
using Bit.App.Services;
|
using Bit.App.Services;
|
||||||
|
using Bit.App.Utilities;
|
||||||
using Bit.iOS.Autofill.Models;
|
using Bit.iOS.Autofill.Models;
|
||||||
using Bit.iOS.Core;
|
using Bit.iOS.Core;
|
||||||
using Bit.iOS.Core.Services;
|
using Bit.iOS.Core.Services;
|
||||||
@@ -233,9 +234,15 @@ namespace Bit.iOS.Autofill
|
|||||||
return;
|
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),
|
CompleteRequest(cipher.Login.Username?.Decrypt(cipher.OrganizationId),
|
||||||
cipher.Login.Password?.Decrypt(cipher.OrganizationId),
|
cipher.Login.Password?.Decrypt(cipher.OrganizationId), totpCode);
|
||||||
cipher.Login.Totp?.Decrypt(cipher.OrganizationId));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CheckLock(Action notLockedAction)
|
private void CheckLock(Action notLockedAction)
|
||||||
|
|||||||
Reference in New Issue
Block a user