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:
@@ -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);
|
||||
|
2
db/db.h
2
db/db.h
@@ -46,7 +46,7 @@ public:
|
||||
|
||||
bool GetUserPass(const std::wstring & login, long & user_id, UserPass & up);
|
||||
Error AddUser(User & user, const UserPass & up);
|
||||
Error ChangeUserPass(const std::wstring & login, const UserPass & up);
|
||||
Error ChangeUserPass(long user_id, const UserPass & up);
|
||||
Error ChangeUserEnv(long user_id, const PT::Space & space);
|
||||
Error ChangeUserAdminEnv(long user_id, const PT::Space & space);
|
||||
Error ChangeUserStatus(long user_id, int status);
|
||||
|
Reference in New Issue
Block a user