mirror of
https://github.com/bitwarden/android.git
synced 2026-06-07 14:57:41 -05:00
BIT-945 Continue with registration if HIBP call fails (#158)
This commit is contained in:
committed by
Álison Fernandes
parent
bb2b0e8cd1
commit
8295a47e3d
@@ -157,14 +157,11 @@ class AuthRepositoryImpl @Inject constructor(
|
||||
if (shouldCheckDataBreaches) {
|
||||
haveIBeenPwnedService
|
||||
.hasPasswordBeenBreached(password = masterPassword)
|
||||
.fold(
|
||||
onFailure = { return RegisterResult.Error(null) },
|
||||
onSuccess = { foundDataBreaches ->
|
||||
if (foundDataBreaches) {
|
||||
return RegisterResult.DataBreachFound
|
||||
}
|
||||
},
|
||||
)
|
||||
.onSuccess { foundDataBreaches ->
|
||||
if (foundDataBreaches) {
|
||||
return RegisterResult.DataBreachFound
|
||||
}
|
||||
}
|
||||
}
|
||||
val kdf = Kdf.Pbkdf2(DEFAULT_KDF_ITERATIONS.toUInt())
|
||||
return authSdkSource
|
||||
|
||||
Reference in New Issue
Block a user