1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-23 19:53:50 +00:00

[PM-2713] rename get pin lock type method

This commit is contained in:
Jacob Fink
2023-07-31 16:49:41 -04:00
parent e323e196c0
commit 89a9185b20
6 changed files with 7 additions and 7 deletions

View File

@@ -170,7 +170,7 @@ namespace Bit.Core.Services
if (await _keyConnectorService.GetUsesKeyConnector())
{
var pinStatus = await IsPinLockSetAsync(userId);
var pinStatus = await GetPinLockTypeAsync(userId);
var ephemeralPinSet = await _stateService.GetUserKeyPinEphemeralAsync()
?? await _stateService.GetPinProtectedKeyAsync();
var pinEnabled = (pinStatus == PinLockType.Transient && ephemeralPinSet != null) ||
@@ -225,7 +225,7 @@ namespace Bit.Core.Services
await _tokenService.ToggleTokensAsync();
}
public async Task<PinLockType> IsPinLockSetAsync(string userId = null)
public async Task<PinLockType> GetPinLockTypeAsync(string userId = null)
{
// we can't depend on only the protected pin being set because old
// versions only used it for MP on Restart