summaryrefslogtreecommitdiffstats
path: root/src/utils/stringfilter.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-02-24 01:12:46 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-02-24 01:12:46 +0100
commitf207bb487da57911350e037d5f894a037fbd74eb (patch)
tree872c96c7eeb1d4b8c3b8c83d76c9095ab445c1a3 /src/utils/stringfilter.cpp
parent14d0744bc55eaa147d3949891411db5914e2d3ec (diff)
downloadmanaserv-f207bb487da57911350e037d5f894a037fbd74eb.tar.gz
manaserv-f207bb487da57911350e037d5f894a037fbd74eb.tar.xz
manaserv-f207bb487da57911350e037d5f894a037fbd74eb.zip
Made a lot of hard-coded values configuration options
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;
}