diff --git a/htdocs/admin.html b/htdocs/generalsettings.html
similarity index 100%
rename from htdocs/admin.html
rename to htdocs/generalsettings.html
diff --git a/htdocs/settings.html b/htdocs/settings.html
new file mode 100644
index 0000000..659b660
--- /dev/null
+++ b/htdocs/settings.html
@@ -0,0 +1,26 @@
+
+
+
+ OpenWebRX Settings
+
+
+
+
+
+
+
+
+
+${header}
+
+
\ No newline at end of file
diff --git a/owrx/controllers/session.py b/owrx/controllers/session.py
index dd6d0f9..51bf399 100644
--- a/owrx/controllers/session.py
+++ b/owrx/controllers/session.py
@@ -46,12 +46,12 @@ class SessionController(WebpageController):
if data["user"] in userlist:
user = userlist[data["user"]]
if user.password.is_valid(data["password"]):
- # TODO pass the final destination
# TODO evaluate password force_change and redirect to password change
key = SessionStorage.getSharedInstance().startSession({"user": user.name})
cookie = SimpleCookie()
cookie["owrx-session"] = key
- self.send_redirect("/admin", cookies=cookie)
+ # TODO pass the final destination
+ self.send_redirect("/settings", cookies=cookie)
return
self.send_redirect("/login")
diff --git a/owrx/controllers/settings.py b/owrx/controllers/settings.py
index 8243d09..8f5e11e 100644
--- a/owrx/controllers/settings.py
+++ b/owrx/controllers/settings.py
@@ -44,6 +44,11 @@ class Section(object):
class SettingsController(AdminController):
+ def indexAction(self):
+ self.serve_template("settings.html", **self.template_variables())
+
+
+class GeneralSettingsController(AdminController):
sections = [
Section(
"General settings",
@@ -222,7 +227,7 @@ class SettingsController(AdminController):
]
def render_sections(self):
- sections = "".join(section.render() for section in SettingsController.sections)
+ sections = "".join(section.render() for section in GeneralSettingsController.sections)
return """