qswiki/user.h

26 satır
386 B
C
Ham Kalıcı Bağlantı Normal Görünüm Geçmiş

2018-11-03 17:12:20 +01:00
#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;
2019-05-03 15:56:08 +02:00
bool enabled;
2018-11-03 17:12:20 +01:00
Permissions permissions;
User();
};
#endif