diff options
author | George Hazan <ghazan@miranda.im> | 2020-10-23 15:45:38 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-10-23 15:45:38 +0300 |
commit | bf672b68673ed18132b3126368f36be40ba79b6d (patch) | |
tree | 012b0c0f3ce0bb1874c7bfc54cfaa06ac8150781 | |
parent | f4adc7543085e13c526e166f5960ebe00a859c5d (diff) |
fixes #2603 (New GPG - Name and mail adress)
-rwxr-xr-x | plugins/New_GPG/src/ui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/New_GPG/src/ui.cpp b/plugins/New_GPG/src/ui.cpp index 35b4b5217a..8574eb43cd 100755 --- a/plugins/New_GPG/src/ui.cpp +++ b/plugins/New_GPG/src/ui.cpp @@ -220,8 +220,8 @@ public: } tmp = edit_KEY_REAL_NAME.GetText(); - if (mir_wstrlen(tmp) < 5) { - MessageBox(nullptr, TranslateT("Name must contain at least 5 characters"), TranslateT("Error"), MB_OK); + if (mir_wstrlen(tmp) < 4) { + MessageBox(nullptr, TranslateT("Name must contain at least 4 characters"), TranslateT("Error"), MB_OK); return false; } if (wcschr(tmp, '(') || wcschr(tmp, ')')) { @@ -230,7 +230,7 @@ public: } tmp = edit_KEY_EMAIL.GetText(); - if ((mir_wstrlen(tmp)) < 5 || (!wcschr(tmp, '@')) || (!wcschr(tmp, '.'))) { + if (mir_wstrlen(tmp) < 5 || !wcschr(tmp, '@')) { MessageBox(nullptr, TranslateT("Invalid Email"), TranslateT("Error"), MB_OK); return false; } |