Compare commits

..

2 Commits

Author SHA1 Message Date
Alexey Gerasimov bbef78ccd7 Merge pull request #55 from TouchInstinct/fix/passCodeCount
TooManyAttempts logic fixed
2018-10-24 13:32:16 +03:00
Alexey Gerasimov 94269b86e5 TooManyAttempts logic fixed 2018-10-24 13:29:36 +03:00
3 changed files with 7 additions and 3 deletions
+4
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.
+1 -1
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"
@@ -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