Let's make (git) history!
此提交包含在:
24
user.h
一般檔案
24
user.h
一般檔案
@@ -0,0 +1,24 @@
|
||||
#ifndef USER_H
|
||||
#define USER_H
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include "permissions.h"
|
||||
class User
|
||||
{
|
||||
private:
|
||||
static User anonUser;
|
||||
|
||||
public:
|
||||
static const User &Anonymous();
|
||||
static void setAnon(User u)
|
||||
{
|
||||
User::anonUser = std::move(u);
|
||||
}
|
||||
std::string login;
|
||||
std::vector<char> password;
|
||||
std::vector<char> salt;
|
||||
Permissions permissions;
|
||||
User();
|
||||
};
|
||||
|
||||
#endif
|
新增問題並參考
封鎖使用者