mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-26 10:33:15 +03:00
Don't execute tryAddCredential if not acceptableInput()
This commit is contained in:
parent
6516ca709f
commit
3d4a9d7ff8
@ -188,10 +188,12 @@ DefaultDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function tryAddCredential() {
|
function tryAddCredential() {
|
||||||
if (device.credentialExists(name.text)) {
|
if (acceptableInput()) {
|
||||||
confirmOverWrite.open()
|
if (device.credentialExists(name.text)) {
|
||||||
} else {
|
confirmOverWrite.open()
|
||||||
addCredential()
|
} else {
|
||||||
|
addCredential()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user