From 56b74360f0d6893170ac66930aa3a87537bab379 Mon Sep 17 00:00:00 2001 From: Hugo H Date: Fri, 22 Aug 2025 12:19:36 +0100 Subject: [PATCH] Added signup html page --- main.py | 4 +- templates/signup.html | 213 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 216 insertions(+), 1 deletion(-) create mode 100644 templates/signup.html diff --git a/main.py b/main.py index c9d0008..4febdc3 100644 --- a/main.py +++ b/main.py @@ -151,7 +151,9 @@ def createChat(): # Returns html signup page @app.route('/signup', methods = ['GET']) def signup(): - pass + token = request.cookies.get('auth_token', 'none') + if (token == 'none'): + return render_template('signup.html', appName=appName, githubUrl=github_auth_endpoint) # Index page # If logged in return home menu (Or logout if token is expired), diff --git a/templates/signup.html b/templates/signup.html new file mode 100644 index 0000000..34fdb6e --- /dev/null +++ b/templates/signup.html @@ -0,0 +1,213 @@ + + + + + + Login | {{ appName }} + + + +
+
+

Sign up to {{ appName }}

+

Please fill out your details:

+
+ +
Or
+
+ + + + + +
+ Sign Up + + + + +
+ + + \ No newline at end of file