diff --git a/modules/installed/first_boot.py b/modules/installed/first_boot.py index 8b1f3d663..576c5c445 100644 --- a/modules/installed/first_boot.py +++ b/modules/installed/first_boot.py @@ -124,7 +124,7 @@ TODO: explain all this cert stuff to the user.
with sqlite_db(cfg.store_file, table="firstboot", autocommit=True) as db: db['state']=5 main = main + """ -Welcome screen not completely implemented yet. Press continue to +
Welcome screen not completely implemented yet. Press continue to see the rest of the web interface.
" """ diff --git a/modules/installed/lib/auth.py b/modules/installed/lib/auth.py index fb2ad2ac9..5ee758688 100644 --- a/modules/installed/lib/auth.py +++ b/modules/installed/lib/auth.py @@ -59,10 +59,10 @@ def check_auth(*args, **kwargs): # A condition is just a callable that returns true or false if not condition(): # Send old page as from_page parameter - raise cherrypy.HTTPRedirect("/auth/login?from_page=%s" % get_params) + raise cherrypy.HTTPRedirect(cfg.server_dir + "/auth/login?from_page=%s" % get_params) else: # Send old page as from_page parameter - raise cherrypy.HTTPRedirect("/auth/login?from_page=%s" % get_params) + raise cherrypy.HTTPRedirect(cfg.server_dir + "/auth/login?from_page=%s" % get_params) cherrypy.tools.auth = cherrypy.Tool('before_handler', check_auth) diff --git a/modules/installed/lib/auth_page.py b/modules/installed/lib/auth_page.py index 6525dc6dc..cab7890bc 100644 --- a/modules/installed/lib/auth_page.py +++ b/modules/installed/lib/auth_page.py @@ -17,7 +17,7 @@ class AuthController(PagePlugin): """Called on logout""" def get_loginform(self, username, msg='', from_page="/"): - form = Form(title="Login", action="/auth/login", message=msg) + form = Form(title="Login", action=cfg.server_dir + "/auth/login", message=msg) form.text_input(name="from_page", value=from_page, type="hidden") form.text_input("Username", name="username", value=username) form.text_input("Passphrase", name="passphrase", type="password") diff --git a/modules/installed/router/router.py b/modules/installed/router/router.py index 6c21fea76..e38f5c575 100644 --- a/modules/installed/router/router.py +++ b/modules/installed/router/router.py @@ -23,7 +23,7 @@ class router(PagePlugin): reflect that we've moved down into the submenu hierarchy. Otherwise, it's hard to know which menu portion to make active or expand or contract.""" - raise cherrypy.HTTPRedirect('/router/setup') + raise cherrypy.HTTPRedirect(cfg.server_dir + '/router/setup') @cherrypy.expose @require()