diff --git a/qml/pages/AddOTP.qml b/qml/pages/AddOTP.qml
index ac33528..28ce97c 100644
--- a/qml/pages/AddOTP.qml
+++ b/qml/pages/AddOTP.qml
@@ -115,6 +115,8 @@ Dialog {
text: paramKey != "" ? paramKey : ""
placeholderText: qsTr("Secret OTP Key")
focus: true
+ validator: RegExpValidator { regExp: /^(?:[A-Za-z2-7]{8})*(?:[A-Za-z2-7]{2}={6}|[A-Za-z2-7]{4}={4}|[A-Za-z2-7]{5}={3}|[A-Za-z2-7]{7}=)?$/ }
+ inputMethodHints: Qt.ImhNoPredictiveText
horizontalAlignment: TextInput.AlignLeft
EnterKey.enabled: text.length > 15
@@ -168,7 +170,7 @@ Dialog {
}
// Check if we can Save
- canAccept: otpLabel.text.length > 0 && otpSecret.text.length >= 16 && otpLen.text >= 1 && ((paramType == "TOTP" && otpDiff.text != "") || paramType == "TOTP_STEAM" || otpCounter.text.length > 0) ? true : false
+ canAccept: otpLabel.text.length > 0 && otpSecret.text.length >= 16 && otpSecret.acceptableInput && otpLen.text >= 1 && ((paramType == "TOTP" && otpDiff.text != "") || paramType == "TOTP_STEAM" || otpCounter.text.length > 0) ? true : false
// Save if page is Left with Add
onDone: {
diff --git a/translations/harbour-sailotp-de.ts b/translations/harbour-sailotp-de.ts
index e230827..4e18625 100644
--- a/translations/harbour-sailotp-de.ts
+++ b/translations/harbour-sailotp-de.ts
@@ -101,28 +101,28 @@ Lizenz: BSD (3-Klausel)
Geheimer Schlüssel
-
+
Länge
-
+
Länge des Tokens
-
+
Zeitabweichung (Sekunden)
-
+
Nächster Zählerwert
-
+
Nächster Wert für den Zähler
diff --git a/translations/harbour-sailotp-es.ts b/translations/harbour-sailotp-es.ts
index 8863118..4693c0b 100644
--- a/translations/harbour-sailotp-es.ts
+++ b/translations/harbour-sailotp-es.ts
@@ -101,28 +101,28 @@ Licencia: BSD (de 3 cláusulas)
Llave secreta OTP
-
+
Longitud
-
+
Longitud del token
-
+
Derivación de tiempo (segundos)
-
+
Siguiente Contador
-
+
Siguiente valor del contador
diff --git a/translations/harbour-sailotp-fi.ts b/translations/harbour-sailotp-fi.ts
index c0e6fcc..151b61e 100644
--- a/translations/harbour-sailotp-fi.ts
+++ b/translations/harbour-sailotp-fi.ts
@@ -101,28 +101,28 @@ Lisenssi: BSD (3-clause)
Salainen OTP-avain
-
+
Pituus
-
+
Tunnuksen pituus
-
+
Aikapoikkeama (sekunneissa)
-
+
Seuraava laskenta-arvo
-
+
Laskurin seuraava arvo
diff --git a/translations/harbour-sailotp-fr.ts b/translations/harbour-sailotp-fr.ts
index 201381e..2212fee 100644
--- a/translations/harbour-sailotp-fr.ts
+++ b/translations/harbour-sailotp-fr.ts
@@ -100,28 +100,28 @@ Licence : BSD (3 clauses)
Clé secrète OTP
-
+
Longueur
-
+
Longueur du jeton
-
+
Dérivation de temps (secondes)
-
+
Prochaine valeur du compteur
-
+
Prochaine valeur du compteur
diff --git a/translations/harbour-sailotp-it.ts b/translations/harbour-sailotp-it.ts
index bc9ef24..07f0973 100644
--- a/translations/harbour-sailotp-it.ts
+++ b/translations/harbour-sailotp-it.ts
@@ -101,28 +101,28 @@ Licenza: BSD (3-clause)
Chiave OTP segreta
-
+
Lunghezza
-
+
Lunghezza del Token
-
+
Derivazione Temporale (Secondi)
-
+
Valore Prossimo Contatore
-
+
Prossimo Valore del Contatore
diff --git a/translations/harbour-sailotp-pt_BR.ts b/translations/harbour-sailotp-pt_BR.ts
index c441792..b13d1dd 100644
--- a/translations/harbour-sailotp-pt_BR.ts
+++ b/translations/harbour-sailotp-pt_BR.ts
@@ -100,28 +100,28 @@ Licença: BSD (3-clause)
Chave secreta OTP
-
+
Tamanho
-
+
Tamanho to Token
-
+
Derivação do tempo (segundos)
-
+
Próximo valor do contador
-
+
Próximo valor do contador
diff --git a/translations/harbour-sailotp-ru.ts b/translations/harbour-sailotp-ru.ts
index 163aa1d..53dedbb 100644
--- a/translations/harbour-sailotp-ru.ts
+++ b/translations/harbour-sailotp-ru.ts
@@ -101,28 +101,28 @@ License: BSD (3-clause)
Секретный ключ OTP
-
+
Длина
-
+
Длина токена
-
+
Интервал расхождения (секунд)
-
+
Следующее значение счетчика
-
+
Следующее значение счетчика
diff --git a/translations/harbour-sailotp-sv.ts b/translations/harbour-sailotp-sv.ts
index 021a4d3..f7a883c 100644
--- a/translations/harbour-sailotp-sv.ts
+++ b/translations/harbour-sailotp-sv.ts
@@ -101,28 +101,28 @@ Licens: BSD (3-clause)
Hemlig OTP-nyckel
-
+
längd
-
+
Längden av token
-
+
Tidsavvikelsen (sekunder)
-
+
Nästa räknarvärde
-
+
Nästa värde på räknaren
diff --git a/translations/harbour-sailotp-zh_CN.ts b/translations/harbour-sailotp-zh_CN.ts
index f27ead1..1424470 100644
--- a/translations/harbour-sailotp-zh_CN.ts
+++ b/translations/harbour-sailotp-zh_CN.ts
@@ -100,28 +100,28 @@ License: BSD (3-clause)
OTP密钥
-
+
长度
-
+
令牌的长度
-
+
时间推导(秒)
-
+
下一个计数器的值
-
+
下一个计数器的值
diff --git a/translations/harbour-sailotp.ts b/translations/harbour-sailotp.ts
index d107c4a..e748339 100644
--- a/translations/harbour-sailotp.ts
+++ b/translations/harbour-sailotp.ts
@@ -99,28 +99,28 @@ License: BSD (3-clause)
-
+
Length
-
+
Length of the Token
-
+
Time Derivation (Seconds)
-
+
-
+