mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
webadmin: combine "List Users" & "Add User"
Let add users via the list of users in the similar manner it’s done for networks. It’s evidently an extra step to add a user, but on the other hand it gives a nice overview of the users when adding new ones, and leads to less clutter in the sidebar.
This commit is contained in:
@@ -79,8 +79,7 @@ public:
|
||||
AddSubPage(new CWebSubPage("settings", "Global Settings", CWebSubPage::F_ADMIN));
|
||||
AddSubPage(new CWebSubPage("edituser", "Your Settings", vParams));
|
||||
AddSubPage(new CWebSubPage("traffic", "Traffic Info", CWebSubPage::F_ADMIN));
|
||||
AddSubPage(new CWebSubPage("listusers", "List Users", CWebSubPage::F_ADMIN));
|
||||
AddSubPage(new CWebSubPage("adduser", "Add User", CWebSubPage::F_ADMIN));
|
||||
AddSubPage(new CWebSubPage("listusers", "Manage Users", CWebSubPage::F_ADMIN));
|
||||
}
|
||||
|
||||
virtual ~CWebAdminMod() {
|
||||
@@ -1383,7 +1382,7 @@ public:
|
||||
bool ListUsersPage(CWebSock& WebSock, CTemplate& Tmpl) {
|
||||
CSmartPtr<CWebSession> spSession = WebSock.GetSession();
|
||||
const map<CString,CUser*>& msUsers = CZNC::Get().GetUserMap();
|
||||
Tmpl["Title"] = "List Users";
|
||||
Tmpl["Title"] = "Manage Users";
|
||||
Tmpl["Action"] = "listusers";
|
||||
|
||||
unsigned int a = 0;
|
||||
|
||||
Reference in New Issue
Block a user