mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-10 17:16:22 +01:00
Added more stuff and multiple api keys
This commit is contained in:
@@ -1,36 +1,22 @@
|
||||
{% extends "public/base.html" %}
|
||||
|
||||
{% load bootstrap %}
|
||||
{% block title %}Alliance Auth{% endblock %}
|
||||
|
||||
{% block page_title %}Register Page{% endblock page_title %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
<div class="row-fluid">
|
||||
<div class="center-block" style="center">
|
||||
<p>
|
||||
{% if error %}
|
||||
<div class="alert alert-danger" role="alert">Username Already Registered</div>
|
||||
{% endif %}
|
||||
<form action="{% url 'auth_register' %}" method="POST">
|
||||
{% csrf_token %}
|
||||
<h2 class="form-signin-heading">Register Account</h2>
|
||||
<p>
|
||||
Username:<br/>
|
||||
{{form.username.errors}}
|
||||
{{form.username}}<br/> Email:<br/>
|
||||
{{form.email.errors}}
|
||||
{{form.email}}<br/> Password:<br/>
|
||||
{{form.password.errors}}
|
||||
{{form.password}}<br/>Api ID: <br/>
|
||||
{{form.api_id.errors}}
|
||||
{{form.api_id}}<br/>Api Key: <br/>
|
||||
{{form.api_key.errors}}
|
||||
{{form.api_key}}<br/>
|
||||
</p>
|
||||
<input type="submit" value="submit" />
|
||||
</form>
|
||||
</p>
|
||||
<div class="row">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4">
|
||||
{% if error %}
|
||||
<div class="alert alert-danger" role="alert">Username Already Registered</div>
|
||||
{% endif %}
|
||||
<form action="{% url 'auth_register' %}" method="POST">
|
||||
{% csrf_token %}
|
||||
<h2 class="form-signin-heading">Register Account</h2>
|
||||
{{ form|bootstrap }}
|
||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Register</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user