Added check if tanExpirationTime is exceeded if set
This commit is contained in:
parent
75320da2be
commit
20f06387c5
|
@ -387,8 +387,10 @@ open class FinTsJobExecutor(
|
||||||
while (tanChallenge.isEnteringTanDone == false) {
|
while (tanChallenge.isEnteringTanDone == false) {
|
||||||
delay(500)
|
delay(500)
|
||||||
|
|
||||||
|
val now = Instant.nowExt()
|
||||||
|
if ((tanChallenge.tanExpirationTime != null && now > tanChallenge.tanExpirationTime) ||
|
||||||
// most TANs a valid 5 - 15 minutes. So terminate wait process after that time
|
// most TANs a valid 5 - 15 minutes. So terminate wait process after that time
|
||||||
if (Instant.nowExt() > tanChallenge.challengeCreationTimestamp.plusMinutes(15)) {
|
(tanChallenge.tanExpirationTime == null && now > tanChallenge.challengeCreationTimestamp.plusMinutes(15))) {
|
||||||
if (tanChallenge.isEnteringTanDone == false) {
|
if (tanChallenge.isEnteringTanDone == false) {
|
||||||
tanChallenge.userDidNotEnterTan()
|
tanChallenge.userDidNotEnterTan()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue