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:

+
+
+ + Github logo + Sign up with Github + +
+
Or
+
+ + + + + +
+ Sign Up + + + + +
+ + + \ No newline at end of file