mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-07 11:20:47 +03:00
Remove totp cooldowns
This commit is contained in:
parent
95c71c6181
commit
1fa8059443
@ -23,7 +23,6 @@ ApplicationWindow {
|
|||||||
|| (!settings.slotMode
|
|| (!settings.slotMode
|
||||||
&& device.hasCCID))
|
&& device.hasCCID))
|
||||||
property var hotpCoolDowns: []
|
property var hotpCoolDowns: []
|
||||||
property var totpCoolDowns: []
|
|
||||||
|
|
||||||
// Don't refresh credentials when window is minimized or hidden
|
// Don't refresh credentials when window is minimized or hidden
|
||||||
// See http://doc.qt.io/qt-5/qwindow.html#Visibility-enum
|
// See http://doc.qt.io/qt-5/qwindow.html#Visibility-enum
|
||||||
@ -277,8 +276,6 @@ ApplicationWindow {
|
|||||||
if (repeater.selected.oath_type === "hotp") {
|
if (repeater.selected.oath_type === "hotp") {
|
||||||
hotpCoolDowns.push(repeater.selected.name)
|
hotpCoolDowns.push(repeater.selected.name)
|
||||||
hotpCoolDownTimer.restart()
|
hotpCoolDownTimer.restart()
|
||||||
} else if (repeater.selected.touch) {
|
|
||||||
totpCoolDowns.push(repeater.selected.name)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -495,7 +492,6 @@ ApplicationWindow {
|
|||||||
var timeLeft = device.expiration - (Date.now() / 1000)
|
var timeLeft = device.expiration - (Date.now() / 1000)
|
||||||
if (timeLeft <= 0 && progressBar.value > 0) {
|
if (timeLeft <= 0 && progressBar.value > 0) {
|
||||||
refreshDependingOnMode(true)
|
refreshDependingOnMode(true)
|
||||||
totpCoolDowns = []
|
|
||||||
}
|
}
|
||||||
progressBar.value = timeLeft
|
progressBar.value = timeLeft
|
||||||
}
|
}
|
||||||
@ -550,8 +546,7 @@ ApplicationWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isInCoolDown(name) {
|
function isInCoolDown(name) {
|
||||||
return hotpCoolDowns.indexOf(name) !== -1 || totpCoolDowns.indexOf(
|
return hotpCoolDowns.indexOf(name) !== -1
|
||||||
name) !== -1
|
|
||||||
}
|
}
|
||||||
function hasIssuer(name) {
|
function hasIssuer(name) {
|
||||||
return name.indexOf(':') !== -1
|
return name.indexOf(':') !== -1
|
||||||
|
Loading…
Reference in New Issue
Block a user