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() {
|
||||
if (device.credentialExists(name.text)) {
|
||||
confirmOverWrite.open()
|
||||
} else {
|
||||
addCredential()
|
||||
if (acceptableInput()) {
|
||||
if (device.credentialExists(name.text)) {
|
||||
confirmOverWrite.open()
|
||||
} else {
|
||||
addCredential()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user