contentdb/app/templates/users/claim.html

134 lines
3.4 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 %}
2018-12-22 14:14:08 +01:00
<div class="card">
<h2 class="card-header">{{ self.title() }}</h2>
2018-05-14 00:31:42 +02:00
2018-12-22 14:14:08 +01:00
<div class="card-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.
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('users.claim')) }}" class="btn">Logout</a>
2018-05-29 18:42:27 +02:00
</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>
2018-12-22 14:14:08 +01:00
<a class="btn btn-primary" href="https://forum.minetest.net/ucp.php?mode=register">
2018-05-29 18:42:27 +02:00
Create a Forum Account
</a>
{% endif %}
</div>
2018-05-14 00:31:42 +02:00
</div>
{% if not current_user.is_authenticated %}
2018-12-22 14:14:08 +01:00
<div class="row mt-4">
<div class="col-sm-4">
<div class="card">
<div class="card-header">
<span class="badge badge-pill badge-dark mr-2">Option 1</span>
Use GitHub field in forum profile
</div>
2018-05-14 00:31:42 +02:00
<form method="post" class="card-body" action="{{ url_for('users.claim') }}">
2018-12-22 14:14:08 +01:00
<input class="form-control" type="hidden" name="claim_type" value="github">
<input class="form-control" type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
2018-05-14 00:31:42 +02:00
<p>
Enter your forum username here:
</p>
2018-12-22 14:14:08 +01:00
<input class="form-control my-4" type="text" name="username" value="{{ username }}" required placeholder="Forum username">
2018-05-14 00:31:42 +02:00
<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>
2018-12-22 14:14:08 +01:00
<input class="btn btn-primary" type="submit" value="Next: log in with GitHub">
2018-05-14 00:31:42 +02:00
</form>
</div>
2018-12-22 14:14:08 +01:00
</div>
2018-05-14 00:31:42 +02:00
2018-12-22 14:14:08 +01:00
<div class="col-sm-4">
<div class="card">
<div class="card-header">
<span class="badge badge-pill badge-dark mr-2">Option 2</span>
Verification token
</div>
2018-05-14 00:31:42 +02:00
<form method="post" class="card-body" action="{{ url_for('users.claim') }}">
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>
2018-12-22 14:14:08 +01:00
<input class="form-control my-3" type="text" name="username" value="{{ username }}" required placeholder="Forum username">
2018-05-14 00:31:42 +02:00
<p>
Go to
<a href="https://forum.minetest.net/ucp.php?i=profile&mode=signature">
User Control Panel > Profile > Edit signature
</a>
</p>
2018-12-22 14:14:08 +01:00
2018-05-14 00:31:42 +02:00
<p>
Paste this into your signature:
</p>
2018-12-22 14:14:08 +01:00
<input class="form-control my-3" type="text" value="{{ key }}" readonly size=32>
2018-05-14 00:31:42 +02:00
<p>
Click next so we can check it.
</p>
<p>
Don't worry, you can remove it after this is done.
</p>
2018-12-22 14:14:08 +01:00
<input class="btn btn-primary" type="submit" value="Next">
2018-05-14 00:31:42 +02:00
</form>
2018-05-29 18:42:27 +02:00
</div>
2018-12-22 14:14:08 +01:00
</div>
2018-05-29 19:27:33 +02:00
2018-12-22 14:14:08 +01:00
<div class="col-sm-4">
<div class="card">
<div class="card-header">
<span class="badge badge-pill badge-dark mr-2">Option 3</span>
Email/password sign up
</div>
2018-05-29 19:27:33 +02:00
2018-12-22 14:14:08 +01:00
<div class="card-body">
<p class="alert alert-danger">
2018-05-29 19:27:33 +02:00
<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>
2018-12-22 14:14:08 +01:00
<a class="btn btn-primary" href="{{ url_for('user.register') }}">Register</a>
2018-05-29 19:27:33 +02:00
</div>
</div>
2018-12-22 14:14:08 +01:00
</div>
</div>
2018-05-14 00:31:42 +02:00
{% endif %}
{% endblock %}