[PM-891] Remove check for biometrics from IsLocked method. (#2853)

This commit is contained in:
André Bispo 2023-11-07 16:46:31 +00:00 committed by GitHub
parent 9506595fdd
commit c5288d3921
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,13 +63,6 @@ namespace Bit.Core.Services
/// </param>
public async Task<bool> IsLockedAsync(string userId = null)
{
// If biometrics are used, we can use the flag to determine locked state
var biometricSet = await IsBiometricLockSetAsync(userId);
if (biometricSet && await _stateService.GetBiometricLockedAsync(userId))
{
return true;
}
if (!await _cryptoService.HasUserKeyAsync(userId))
{
try