contentdb/app/templates/users/claim.html

101 lines
2.6 KiB
HTML
Raw Normal View History

2018-05-14 00:31:42 +02:00
{% extends "base.html" %}
{% block title %}
2018-05-29 18:42:27 +02:00
Creating an Account
2018-05-14 00:31:42 +02:00
{% endblock %}
{% block content %}
<div class="box box_grey">
<h2>{{ self.title() }}</h2>
2018-05-29 18:42:27 +02:00
<div class="box-body">
2018-05-14 00:31:42 +02:00
<p>
2018-05-29 18:42:27 +02:00
If you have a forum account, you'll need to prove that you own it
to get an account on ContentDB. You don't need a forum account to sign
up however.
2018-05-14 00:31:42 +02:00
</p>
2018-05-29 18:42:27 +02:00
{% 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>
2018-05-14 00:31:42 +02:00
</div>
{% if not current_user.is_authenticated %}
<div class="box box_grey">
<h2>Option 1 - Use GitHub field in forum profile</h2>
2018-05-29 18:42:27 +02:00
<form method="post" class="box-body" action="{{ url_for('user_claim_page') }}">
2018-05-14 00:31:42 +02:00
<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>
2018-05-29 18:42:27 +02:00
<div class="box box_grey">
2018-05-14 00:31:42 +02:00
<h2>Option 2 - Paste verification token into signature</h2>
2018-05-29 18:42:27 +02:00
<form method="post" class="box-body" action="{{ url_for('user_claim_page') }}">
2018-05-14 00:31:42 +02:00
<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>
2018-05-29 18:42:27 +02:00
</div>
2018-05-14 00:31:42 +02:00
{% endif %}
{% endblock %}