Merge pull request #55 from TouchInstinct/fix/passCodeCount

TooManyAttempts logic fixed
This commit is contained in:
Alexey Gerasimov 2018-10-24 13:32:16 +03:00 committed by GitHub
commit bbef78ccd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,9 @@
# Changelog
### 0.3.7
- **Fixed**: `PassCodeError.tooManyAttempts` logic in `.create` and `.change` `PassCodeOperationType`
### 0.3.6
- **Update**: PassCodeError, now emmit `tooManyAttempts` in any operation (*create* / *change* / *enter*) type.

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "LeadKitAdditions"
s.version = "0.3.6"
s.version = "0.3.7"
s.summary = "iOS framework with a bunch of tools for rapid development"
s.homepage = "https://github.com/TouchInstinct/LeadKitAdditions"
s.license = "Apache License, Version 2.0"

View File

@ -198,9 +198,9 @@ extension BasePassCodeViewModel {
}
switch passCodeHolder.type {
case .create where passCodeHolder.enterStep == .enter:
case .create where passCodeHolder.enterStep == .repeatEnter:
attemptsNumber += 1
case .change where passCodeHolder.enterStep == .enter:
case .change where passCodeHolder.enterStep == .repeatEnter:
attemptsNumber += 1
case .enter:
attemptsNumber += 1