diff --git a/main.py b/main.py index 06b2ecf..c7aeeeb 100644 --- a/main.py +++ b/main.py @@ -75,7 +75,7 @@ def login(): if not user['success']: return error(user['message']) # Redirect to dashboard with cookie - resp = make_response(redirect('/edit')) + resp = make_response(redirect('/account')) resp.set_cookie('token', user['token']) return resp @@ -183,6 +183,10 @@ def catch_all(path): site = user['domain'] + "." + CITY_DOMAIN elif path != "signup" and path != "login": return redirect('/') + + if path == "account": + account_link = "logout" + account_link_name = "Logout" # If file exists, load it if os.path.isfile('templates/' + path): diff --git a/templates/account.html b/templates/account.html index 3d4ef26..924c208 100644 --- a/templates/account.html +++ b/templates/account.html @@ -1,5 +1,5 @@ - + @@ -9,24 +9,23 @@ - - + +
+
+
+
+
Create your page{{account}}
+
+
+
Create a new page{{account_link_name}}
+
+
+
+
-

Email: {{account}}
Site: {{site}}

Logout +

Welcome to ShakeCities

+

Congratulations your site is ready for use.

+
Visit your siteEdit your siteLogout