From ff8bf992a9048e55b58ece46cf25cc3a43edcef7 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 13 May 2018 23:31:42 +0100 Subject: Add user account claiming --- app/templates/flask_user/login.html | 17 ++----- app/templates/users/claim.html | 98 +++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+), 13 deletions(-) create mode 100644 app/templates/users/claim.html (limited to 'app/templates') diff --git a/app/templates/flask_user/login.html b/app/templates/flask_user/login.html index c19f1f3..c676aca 100644 --- a/app/templates/flask_user/login.html +++ b/app/templates/flask_user/login.html @@ -61,26 +61,17 @@ Sign in {# Submit button #} {{ render_submit_field(form.submit, tabindex=180) }} + + GitHub
+

Create an account using your forum account.

- -
diff --git a/app/templates/users/claim.html b/app/templates/users/claim.html new file mode 100644 index 0000000..f4333d9 --- /dev/null +++ b/app/templates/users/claim.html @@ -0,0 +1,98 @@ +{% extends "base.html" %} + +{% block title %} +Verify forum account +{% endblock %} + +{% block content %} +
+

{{ self.title() }}

+ +

+ Create an account by linking it to your forum account and optionally + your github account. +

+ + {% if current_user.is_authenticated %} +

+ Please log out to continue. +

+

+ Logout +

+ {% else %} +

+ Don't have a forum account? + Unfortunately, you need a forum account to register. + This is because you also need to create forum topics for any packages + you may upload. +

+ + + Create a Forum Account + + {% endif %} +
+ + {% if not current_user.is_authenticated %} +
+

Option 1 - Use GitHub field in forum profile

+ +
+ + + +

+ Enter your forum username here: +

+ + + +

+ You'll need to have the GitHub field in your forum profile + filled out. Log into the forum and + + do that here. +

+ + +
+
+ + + {% endif %} +{% endblock %} -- cgit v1.2.3