qswiki/handlers/handlerlogin.h

24 lignes
503 B
C
Brut Vue normale Historique

2018-11-03 17:12:20 +01:00
#ifndef HANDLERLOGIN_H
#define HANDLERLOGIN_H
#include <vector>
#include "handler.h"
class HandlerLogin : public Handler
{
private:
bool isBanned(std::string ip);
void incFailureCount(std::string ip);
std::vector<char> pbkdf5(std::string password, const std::vector<char> &salt);
public:
HandlerLogin();
Response handleRequest(const Request &r) override;
2018-11-03 17:12:20 +01:00
~HandlerLogin() override
{
}
bool canAccess(const Permissions &perms) override;
2018-11-03 17:12:20 +01:00
using Handler::Handler;
};
#endif // HANDERLOGIN_H