added: winix function: rmuser
changed: UGContainer<> now uses std::list as a storage
(previously it was using std::vector with pointers)
removed: now we don't have the operator[] for UGContainer<>
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@816 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -87,8 +87,6 @@ return true;
|
||||
|
||||
|
||||
|
||||
// !! IMPROVE ME
|
||||
// add some email validation here
|
||||
bool AddUser::IsEmailCorrect(const std::wstring & email, bool use_ses_log)
|
||||
{
|
||||
if( email.size() > WINIX_ACCOUNT_MAX_EMAIL_SIZE )
|
||||
@@ -102,6 +100,16 @@ bool AddUser::IsEmailCorrect(const std::wstring & email, bool use_ses_log)
|
||||
return false;
|
||||
}
|
||||
|
||||
if( !ValidateEmail(email) )
|
||||
{
|
||||
log << log2 << "AddUser: email: " << email << " does not seem to be correct" << logend;
|
||||
|
||||
if( use_ses_log )
|
||||
slog << logerror << T(L"adduser_err_email_incorrect") << logend;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user