File tree Expand file tree Collapse file tree
app/src/main/kotlin/com/darkrockstudios/app/securecamera/usecases Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com.darkrockstudios.app.securecamera.usecases
22
3- import com.darkrockstudios.app.securecamera.auth.AuthorizationRepository
43import com.darkrockstudios.app.securecamera.camera.SecureImageRepository
54import com.darkrockstudios.app.securecamera.security.pin.PinRepository
65import com.darkrockstudios.app.securecamera.security.schemes.EncryptionScheme
76
87class VerifyPinUseCase (
9- private val authManager : AuthorizationRepository ,
108 private val imageManager : SecureImageRepository ,
119 private val pinRepository : PinRepository ,
1210 private val encryptionScheme : EncryptionScheme ,
@@ -22,7 +20,6 @@ class VerifyPinUseCase(
2220 val hashedPin = authorizePinUseCase.authorizePin(pin)
2321 return if (hashedPin != null ) {
2422 encryptionScheme.deriveAndCacheKey(pin, hashedPin)
25- authManager.resetFailedAttempts()
2623 true
2724 } else {
2825 false
You can’t perform that action at this time.
0 commit comments