From f1d195fa1dd579333a795962cd3d4a749b70660c Mon Sep 17 00:00:00 2001 From: Stefan Brand Date: Sun, 7 Apr 2019 21:12:50 +0200 Subject: [PATCH] Relaxed Base32 Check for Amazon Secrets --- qml/pages/About.qml | 2 +- qml/pages/AddOTP.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qml/pages/About.qml b/qml/pages/About.qml index 671a25a..033c690 100644 --- a/qml/pages/About.qml +++ b/qml/pages/About.qml @@ -129,7 +129,7 @@ Page { font.pixelSize: Theme.fontSizeSmall horizontalAlignment: TextEdit.Center readOnly: true - text: qsTr("Translators:")+"\n\nChinese: BirdZhang\nFinnish: Johan Heikkilä\nFrench: Romain Tartière\nItalian: Tichy\nRussian: moorchegue\nSpanish: p4moedo\nSwedish: Åke Engelbrektson\nEnglish: Stefan Brand\nGerman: Stefan Brand" + text: qsTr("Translators:")+"\n\nChinese: BirdZhang\nFinnish: Johan Heikkilä\nFrench: Romain Tartière\nItalian: Tichy\nDutch: JSEHV\nRussian: moorchegue\nSpanish: p4moedo\nSwedish: Åke Engelbrektson\nEnglish: Stefan Brand\nGerman: Stefan Brand" color: Theme.primaryColor } } diff --git a/qml/pages/AddOTP.qml b/qml/pages/AddOTP.qml index 535e27d..f844708 100644 --- a/qml/pages/AddOTP.qml +++ b/qml/pages/AddOTP.qml @@ -127,7 +127,7 @@ 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}=)?$/ } + validator: RegExpValidator { regExp: /^(?:[A-Za-z2-7]{8})*(?:[A-Za-z2-7]{2}|[A-Za-z2-7]{4}|[A-Za-z2-7]{5}|[A-Za-z2-7]{7})?$/ } inputMethodHints: Qt.ImhNoPredictiveText horizontalAlignment: TextInput.AlignLeft