start working on User and Group classes
- User and Group has been moved to 'models' directory - removed UserPass struct (passwords fields were put to User struct) not working yet, we need support for binary blobs in morm
This commit is contained in:
@@ -41,8 +41,8 @@
|
||||
#include <ctime>
|
||||
#include <cstring>
|
||||
#include "dbbase.h"
|
||||
#include "core/user.h"
|
||||
#include "core/group.h"
|
||||
#include "models/user.h"
|
||||
#include "models/group.h"
|
||||
#include "core/dircontainer.h"
|
||||
#include "core/ugcontainer.h"
|
||||
|
||||
@@ -55,6 +55,7 @@ class Db : public DbBase
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
Db()
|
||||
{
|
||||
is_postgresql_smaller_than_10 = false;
|
||||
@@ -62,6 +63,7 @@ public:
|
||||
|
||||
void PostgreSQLsmallerThan10(bool is_smaller_than_10);
|
||||
|
||||
/*
|
||||
bool GetUserPass(const std::wstring & login, long & user_id, UserPass & up);
|
||||
Error AddUser(User & user, const UserPass & up);
|
||||
Error ChangeUserPass(long user_id, const UserPass & up);
|
||||
@@ -80,8 +82,12 @@ public:
|
||||
protected:
|
||||
|
||||
DbTextStream query, query_create_url;
|
||||
bool is_postgresql_smaller_than_10;
|
||||
*/
|
||||
|
||||
|
||||
std::wstring postgrsql_row_statement;
|
||||
bool is_postgresql_smaller_than_10;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user