Don't execute tryAddCredential if not acceptableInput()

This commit is contained in:
Emil Lundberg 2018-05-29 12:50:19 +02:00
parent 6516ca709f
commit 3d4a9d7ff8
No known key found for this signature in database
GPG Key ID: DB2868F3A95F2781

View File

@ -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()
}
}
}