Introduce HandlerUserSettings to change user settings, e. g. pw changes

Šī revīzija ir iekļauta:
2021-03-26 22:50:55 +01:00
vecāks ac99894157
revīzija 70c4bfaffa
4 mainīti faili ar 91 papildinājumiem un 0 dzēšanām

Parādīt failu

@@ -32,6 +32,7 @@ SOFTWARE.
#include "handlercategory.h"
#include "handlerhistory.h"
#include "handlerpagedelete.h"
#include "handlerusersettings.h"
std::unique_ptr<Handler> HandlerFactory::createHandler(const std::string &action, Session &userSession)
{
@@ -75,6 +76,10 @@ std::unique_ptr<Handler> HandlerFactory::createHandler(const std::string &action
{
return produce<HandlerHistory>(userSession);
}
if(action == "usersettings")
{
return produce<HandlerUserSettings>(userSession);
}
return produce<HandlerInvalidAction>(userSession);
}