Only moderators (or better) may access the user table. You could try logging out and then logging in again as a moderator, or alternatively visit the user list instead, if that's what you're after.
"));
+ exit(page_renderer::render_main("Unauthorised - User Table - $settings->sitename", "
Only moderators (or better) may access the user table. You could try logging out and then logging in again as a moderator, or alternatively visit the user list instead, if that's what you're after.
"));
}
$content = "
User Table
@@ -7541,7 +7548,7 @@ register_module([
// The user wants to log in
$user = $_POST["user"];
$pass = $_POST["pass"];
- if(verify_password($pass, $settings->users->$user->password))
+ if(!empty($settings->users->$user) && verify_password($pass, $settings->users->$user->password))
{
// Success! :D
diff --git a/module_index.json b/module_index.json
index 6bd000b..7de3a68 100755
--- a/module_index.json
+++ b/module_index.json
@@ -64,11 +64,11 @@
},
{
"name": "Settings GUI",
- "version": "0.1.1",
+ "version": "0.1.2",
"author": "Starbeamrainbowlabs",
"description": "The module everyone has been waiting for! Adds a web based gui that lets mods change the wiki settings.",
"id": "feature-guiconfig",
- "lastupdate": 1524415857,
+ "lastupdate": 1526250969,
"optional": false
},
{
@@ -140,7 +140,7 @@
"author": "Starbeamrainbowlabs",
"description": "Adds a organiser page that lets moderators (or better) control the reegistered user accounts, and perform adminstrative actions such as password resets, and adding \/ removing accounts.",
"id": "feature-user-table",
- "lastupdate": 1526161887,
+ "lastupdate": 1526250680,
"optional": false
},
{
@@ -212,7 +212,7 @@
"author": "Starbeamrainbowlabs",
"description": "Adds a pair of actions (login and checklogin) that allow users to login. You need this one if you want your users to be able to login.",
"id": "page-login",
- "lastupdate": 1526038530,
+ "lastupdate": 1526227977,
"optional": false
},
{
diff --git a/modules/feature-guiconfig.php b/modules/feature-guiconfig.php
index b9eae58..d764d39 100644
--- a/modules/feature-guiconfig.php
+++ b/modules/feature-guiconfig.php
@@ -1,7 +1,7 @@
"Settings GUI",
- "version" => "0.1.1",
+ "version" => "0.1.2",
"author" => "Starbeamrainbowlabs",
"description" => "The module everyone has been waiting for! Adds a web based gui that lets mods change the wiki settings.",
"id" => "feature-guiconfig",
@@ -99,6 +99,13 @@ SCRIPT;
$reverse = true;
$inputControl = "$configKey ? " checked" : "") . " />";
break;
+ case "usertable":
+ $label = "";
+ if(module_exists("feature-user-table"))
+ $inputControl = "
Only moderators (or better) may access the user table. You could try logging out and then logging in again as a moderator, or alternatively visit the user list instead, if that's what you're after.
"));
+ exit(page_renderer::render_main("Unauthorised - User Table - $settings->sitename", "
Only moderators (or better) may access the user table. You could try logging out and then logging in again as a moderator, or alternatively visit the user list instead, if that's what you're after.