bugfixes and small features

Fixed config switches not registering the correct current value
Added better ux when image uploads are disabled
Fixed an issue where uploaded files were not being handled correctly
Added the ability to disable user registrations
Fixed some variables being unintendedly protected
This commit is contained in:
Joey Kimsey
2025-01-26 15:13:34 -05:00
parent d4751696f3
commit 35b7be92a6
7 changed files with 41 additions and 13 deletions

View File

@ -291,6 +291,11 @@ class TheTempusProject extends Bedrock {
"pretty" => "Enable CSRF Token for all forms.",
"default" => true
],
"registrationEnabled" => [
"type" => "radio",
"pretty" => "Allow new users to register an account.",
"default" => true
],
"loginLimit" => [
"type" => "text",
"pretty" => "Maximum Login Attempts per hour",
@ -304,17 +309,15 @@ class TheTempusProject extends Bedrock {
],
"uploads" => [
"images" => [
"type"=> "radio",
"pretty"=> "Upload Images Enabled",
"default"=> true,
"protected"=> true,
"value"=> true,
"type" => "radio",
"pretty" => "Upload Images Enabled",
"default" => true,
"value" => true,
],
"maxImageSize"=> [
"type" => "text",
"pretty" => "Maximum size for image uploads",
"default" => 500000,
"protected" => true,
"value" => 500000,
]
],