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

This commit is contained in:
2021-03-26 22:50:55 +01:00
parent ac99894157
commit 70c4bfaffa
4 changed files with 91 additions and 0 deletions

View File

@@ -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);
}