aboutsummaryrefslogtreecommitdiff
path: root/app/templates/users/claim.html
blob: ae8e9c9921ff32351b950d0c5d0744428e805fce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{% extends "base.html" %}

{% block title %}
Creating an Account
{% endblock %}

{% block content %}
	<div class="box box_grey">
		<h2>{{ self.title() }}</h2>

		<div class="box-body">
			<p>
				If you have a forum account, you'll need to prove that you own it
				to get an account on ContentDB.
			</p>

			{% if current_user.is_authenticated %}
				<p>
					Please log out to continue.
				</p>
				<p>
					<a href="{{ url_for('user.logout', next=url_for('user_claim_page')) }}" class="button">Logout</a>
				</p>
			{% else %}
				<p>
					<b>Don't have a forum account?</b>
					You don't need one, however it's recommended to make the most
					out of the Minetest community.
				</p>

				<a href="https://forum.minetest.net/ucp.php?mode=register">
					Create a Forum Account
				</a>
			{% endif %}
		</div>
	</div>

	{% if not current_user.is_authenticated %}
		<div class="box box_grey">
			<h2>Option 1 - Use GitHub field in forum profile</h2>

			<form method="post" class="box-body" action="{{ url_for('user_claim_page') }}">
				<input type="hidden" name="claim_type" value="github">
				<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />

				<p>
					Enter your forum username here:
				</p>

				<input type="text" name="username" value="{{ username }}" required placeholder="Forum username">

				<p>
					You'll need to have the GitHub field in your forum profile
					filled out. Log into the forum and
					<a href="https://forum.minetest.net/ucp.php?i=173">
						do that here</a>.
				</p>

				<input type="submit" value="Next: log in with GitHub">
			</form>
		</div>

		<div class="box box_grey">
			<h2>Option 2 - Paste verification token into signature</h2>

			<form method="post" class="box-body" action="{{ url_for('user_claim_page') }}">
				<input type="hidden" name="claim_type" value="forum">
				<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />

				<p>
					Enter your forum username here:
				</p>

				<input type="text" name="username" value="{{ username }}" required placeholder="Forum username">

				<p>
					Go to
					<a href="https://forum.minetest.net/ucp.php?i=profile&mode=signature">
						User Control Panel > Profile > Edit signature
					</a>
				</p>
				<p>
					Paste this into your signature:
				</p>

				<input type="text" value="{{ key }}" readonly size=32>

				<p>
					Click next so we can check it.
				</p>
				<p>
					Don't worry, you can remove it after this is done.
				</p>

				<input type="submit" value="Next">
			</form>
		</div>

		<div class="box box_grey">
			<h2>Option 3 - Email/password sign up</h2>

			<div class="box-body">
				<p>
					<b>Only do this if you don't have a forum account!</b>
				</p>
				<p>
					If you have a forum account, please use one of the other two
					options.
				</p>

				<a class="button" href="{{ url_for('user.register') }}">Register</a>
			</div>
		</div>
	{% endif %}
{% endblock %}