summaryrefslogtreecommitdiffstats
path: root/src/utils/stringfilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/stringfilter.cpp')
-rw-r--r--src/utils/stringfilter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/stringfilter.cpp b/src/utils/stringfilter.cpp
index b1df68f..93be8b3 100644
--- a/src/utils/stringfilter.cpp
+++ b/src/utils/stringfilter.cpp
@@ -104,8 +104,8 @@ bool StringFilter::filterContent(const std::string& text)
bool StringFilter::isEmailValid(const std::string& email)
{
// Testing Email validity
- if ((email.length() < MIN_EMAIL_LENGTH) ||
- (email.length() > MAX_EMAIL_LENGTH))
+ if ((email.length() < Configuration::getValue("account_minEmailLength", 7)) ||
+ (email.length() > Configuration::getValue("account_maxEmailLength", 128)))
{
return false;
}