fixed: misc: ValidateEmail() buffer overflow

added: notifications for resetting a user's password
       (there is no a winix function for this yet)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@817 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-03-09 22:56:54 +00:00
parent 489310ba1c
commit b7007da5a9
27 changed files with 540 additions and 145 deletions

View File

@@ -117,7 +117,7 @@ return status;
Error Db::ChangeUserPass(const std::wstring & login, const UserPass & up)
Error Db::ChangeUserPass(long user_id, const UserPass & up)
{
query.Clear();
query << R("update core.user set(password, pass_encrypted,"
@@ -133,8 +133,8 @@ Error Db::ChangeUserPass(const std::wstring & login, const UserPass & up)
query << up.pass_type
<< up.pass_hash_salted
<< R(") where login=")
<< login
<< R(") where id=")
<< user_id
<< R(";");
return DoCommand(query);