mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
set fingerprint lock prop on login
This commit is contained in:
parent
d9907cdbeb
commit
5fdf8e6045
2 changed files with 5 additions and 1 deletions
|
@ -19,6 +19,7 @@ namespace Bit.Core.Services
|
||||||
private readonly II18nService _i18nService;
|
private readonly II18nService _i18nService;
|
||||||
private readonly IPlatformUtilsService _platformUtilsService;
|
private readonly IPlatformUtilsService _platformUtilsService;
|
||||||
private readonly IMessagingService _messagingService;
|
private readonly IMessagingService _messagingService;
|
||||||
|
private readonly ILockService _lockService;
|
||||||
private readonly bool _setCryptoKeys;
|
private readonly bool _setCryptoKeys;
|
||||||
|
|
||||||
private SymmetricCryptoKey _key;
|
private SymmetricCryptoKey _key;
|
||||||
|
@ -34,6 +35,7 @@ namespace Bit.Core.Services
|
||||||
II18nService i18nService,
|
II18nService i18nService,
|
||||||
IPlatformUtilsService platformUtilsService,
|
IPlatformUtilsService platformUtilsService,
|
||||||
IMessagingService messagingService,
|
IMessagingService messagingService,
|
||||||
|
ILockService lockService,
|
||||||
bool setCryptoKeys = true)
|
bool setCryptoKeys = true)
|
||||||
{
|
{
|
||||||
_cryptoService = cryptoService;
|
_cryptoService = cryptoService;
|
||||||
|
@ -44,6 +46,7 @@ namespace Bit.Core.Services
|
||||||
_i18nService = i18nService;
|
_i18nService = i18nService;
|
||||||
_platformUtilsService = platformUtilsService;
|
_platformUtilsService = platformUtilsService;
|
||||||
_messagingService = messagingService;
|
_messagingService = messagingService;
|
||||||
|
_lockService = lockService;
|
||||||
_setCryptoKeys = setCryptoKeys;
|
_setCryptoKeys = setCryptoKeys;
|
||||||
|
|
||||||
TwoFactorProviders = new Dictionary<TwoFactorProviderType, TwoFactorProvider>();
|
TwoFactorProviders = new Dictionary<TwoFactorProviderType, TwoFactorProvider>();
|
||||||
|
@ -312,6 +315,7 @@ namespace Bit.Core.Services
|
||||||
await _cryptoService.SetEncPrivateKeyAsync(tokenResponse.PrivateKey);
|
await _cryptoService.SetEncPrivateKeyAsync(tokenResponse.PrivateKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_lockService.FingerprintLocked = false;
|
||||||
_messagingService.Send("loggedIn");
|
_messagingService.Send("loggedIn");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,7 @@ namespace Bit.Core.Utilities
|
||||||
cryptoFunctionService);
|
cryptoFunctionService);
|
||||||
var totpService = new TotpService(storageService, cryptoFunctionService);
|
var totpService = new TotpService(storageService, cryptoFunctionService);
|
||||||
var authService = new AuthService(cryptoService, apiService, userService, tokenService, appIdService,
|
var authService = new AuthService(cryptoService, apiService, userService, tokenService, appIdService,
|
||||||
i18nService, platformUtilsService, messagingService);
|
i18nService, platformUtilsService, messagingService, lockService);
|
||||||
// TODO: export service
|
// TODO: export service
|
||||||
var auditService = new AuditService(cryptoFunctionService, apiService);
|
var auditService = new AuditService(cryptoFunctionService, apiService);
|
||||||
var environmentService = new EnvironmentService(apiService, storageService);
|
var environmentService = new EnvironmentService(apiService, storageService);
|
||||||
|
|
Loading…
Reference in a new issue