From bf672b68673ed18132b3126368f36be40ba79b6d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 23 Oct 2020 15:45:38 +0300 Subject: fixes #2603 (New GPG - Name and mail adress) --- plugins/New_GPG/src/ui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/New_GPG/src') 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; } -- cgit v1.2.3