easy access to admin information

This commit is contained in:
Torsten Schulz
2024-05-29 14:19:07 +02:00
parent 4ce3504688
commit d7c5e72928
5 changed files with 147 additions and 9 deletions

View File

@@ -20,6 +20,9 @@ public:
~App();
private:
const std::string adminName {"comiciusadmin"};
const std::string adminPassword {"p3Lv9!7?+Qq"};
std::map<Wt::WString, Wt::WString> genders_ {
{"F", "Female"},
{"M", "Male"},
@@ -94,6 +97,7 @@ private:
Search searchFields;
Wt::WTimer *loginTimer_;
Wt::WTimer *timeoutRemainingTimer_;
bool isLoggedInAsAdmin {false};
void setMetaTags();
void initApp();
void reSetUser();
@@ -212,6 +216,11 @@ private:
bool isAnimatedGIF(const Magick::Blob &blob);
void showStandardPage();
void onInternalPathChanged(const std::string &path);
void showAdminPage(std::string page);
void showAdminLogin(std::string page);
void showPageNotExists();
void showAdminLogins();
void showAdminStarts();
};
#endif // APP_H