Let's make (git) history!
This commit is contained in:
21
session.h
Normal file
21
session.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef SESSION_H
|
||||
#define SESSION_H
|
||||
#include <ctime>
|
||||
#include "user.h"
|
||||
class Session
|
||||
{
|
||||
public:
|
||||
Session()
|
||||
{
|
||||
}
|
||||
Session(User u);
|
||||
bool loggedIn;
|
||||
User user;
|
||||
std::string token;
|
||||
std::string csrf_token;
|
||||
time_t creation_time;
|
||||
|
||||
static Session createAnon();
|
||||
};
|
||||
|
||||
#endif
|
Viittaa uudesa ongelmassa
Block a user