mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
101 lines
2.5 KiB
HTML
101 lines
2.5 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Your Profile{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>Your Profile</h1>
|
|
|
|
<ul>
|
|
<li><b>Username:</b> {{ user.username }}</li>
|
|
</ul>
|
|
|
|
{% if eveaccounts %}
|
|
<h2>Service Accounts</h2>
|
|
<p>This is a list of all your current service accounts, to create a login for
|
|
a new service click the Add Service link</p>
|
|
{% if srvaccounts %}
|
|
<table>
|
|
<thead>
|
|
<tr><th>Service</th><th>Username</th><th>Password</th><th>Active</th><th>Actions</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for acc in srvaccounts %}
|
|
<tr><td>{{ acc.service }}</td>
|
|
<td>{{ acc.service_uid }}</td>
|
|
<td>******</td>
|
|
<td>{{ acc.active }}</td>
|
|
<td><a href="/profile/del/service/{{ acc.id }}/">Delete</a>
|
|
{% if acc.service.provide_login %}
|
|
/ <a href="/profile/login/service/{{ acc.id }}/">Login</a>
|
|
{% endif %}
|
|
</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot><tr><td colspan="5"> </td></tr></tfoot>
|
|
</table>
|
|
{% endif %}
|
|
|
|
<p>
|
|
<a href="/profile/add/service">Add Service</a>
|
|
</p>
|
|
|
|
<br/>
|
|
{% endif %}
|
|
|
|
<h2>Eve API Keys</h2>
|
|
<p>Adding a Eve API key will allow you to access any services allowed for your
|
|
corporation. Limited keys are accepted for service validation. API keys
|
|
are stored for on-going authentication. As the assigned owner of a key you may
|
|
remove them at any time, but this may affect any existing services you have
|
|
setup.</p>
|
|
{% if eveaccounts %}
|
|
<table>
|
|
<thead>
|
|
<tr><th>User ID</th><th>API Key</th><th>Description</th><th>Active</th><th>Actions</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for acc in eveaccounts %}
|
|
<tr><td>{{ acc.api_user_id }}</td>
|
|
<td>{{ acc.api_key }}</td>
|
|
<td>{{ acc.description }}</td>
|
|
<td>{{ acc.api_status }}</td>
|
|
<td><a href="/profile/del/eveapi/{{ acc.api_user_id }}/">Delete</a></td>
|
|
</tr>
|
|
</tbody>
|
|
{% endfor %}
|
|
<tfoot><tr><td colspan="5"> </td></tr></tfoot>
|
|
</table>
|
|
{% endif %}
|
|
<p>
|
|
<a href="/profile/add/eveapi">Add a Eve API key</a>
|
|
</p>
|
|
|
|
|
|
<h2>Reddit Accounts</h2>
|
|
<p>This is a list of all your current linked Reddit accounts</p>
|
|
{% if redditaccounts %}
|
|
<table>
|
|
<thead>
|
|
<tr><th>Username</th><th>Created Date</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for acc in redditaccounts %}
|
|
<tr><td>{{ acc.username }}</td>
|
|
<td>{{ acc.date_created }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot><tr><td colspan="5"> </td></tr></tfoot>
|
|
</table>
|
|
{% endif %}
|
|
<p>
|
|
<a href="/profile/add/reddit">Add a Reddit account</a>
|
|
</p>
|
|
|
|
<p>If you encounter any errors during using this service, copy the massive
|
|
error message into <a href="http://pastebin.com/">Pastebin</a> and give
|
|
Matalok a good kicking on IRC/Jabber/Email or on the Forums.</p>
|
|
{% endblock %}
|