mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-23 06:39:25 +00:00
Reorganised Serivce Account templates
This commit is contained in:
25
templates/sso/serviceaccount/created.html
Normal file
25
templates/sso/serviceaccount/created.html
Normal file
@@ -0,0 +1,25 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Service Account{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if error %}
|
||||
<div style="border: 1px solid #FF0000; background: #FF7D7D; width: 100%; text-align: center;">
|
||||
<b>Error:</b> Your account has not been created. Either you already have a user on this service or a error has occured. If you think
|
||||
this is incorrect please raise a bug on the tracker.
|
||||
</div>
|
||||
{% else %}
|
||||
<p>Your account on {{ account.service }} has been created. Your login details are as follows:</p>
|
||||
|
||||
<table>
|
||||
<tr><td>Username:</td><td>{{ account.service_uid }}</td></tr>
|
||||
<tr><td>Password:</td><td>{{ account.password }}</td></tr>
|
||||
</table>
|
||||
|
||||
<p><b>Warning:</b> You password is random, please either note it down or once logged into the service change it to something you
|
||||
will remember. Service passwords are not stored in the Auth system.</p>
|
||||
|
||||
<p><a href="/profile">Return to your profile page</a></p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
18
templates/sso/serviceaccount/index.html
Normal file
18
templates/sso/serviceaccount/index.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Add Service Account{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>To add a service to your account, selec the service from the list below
|
||||
then provide select a username you wish to use create the account for<br/>
|
||||
<br/>
|
||||
For details on how to connect to each service, please consult the <a
|
||||
href="http://wiki.dredd.it">wiki</a></p>
|
||||
<form action="/profile/add/service" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
<table>
|
||||
<input type="submit" value="Create Account" />
|
||||
</form>
|
||||
<br/>
|
||||
{% endblock %}
|
||||
9
templates/sso/serviceaccount/noneavailable.html
Normal file
9
templates/sso/serviceaccount/noneavailable.html
Normal file
@@ -0,0 +1,9 @@
|
||||
% extends "base.html" %}
|
||||
|
||||
{% block title %}Service Account{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>You have no services available to add to your account</p>
|
||||
|
||||
<p><a href="/profile">Return to your Profile</a></p>
|
||||
{% endblock %}
|
||||
12
templates/sso/serviceaccount/reset.html
Normal file
12
templates/sso/serviceaccount/reset.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Service Account Password Reset{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<p>This service will reset your password for account {{ acc.service_uid }} on {{ acc.service }}. If you wish to continue please click the link
|
||||
below.</p>
|
||||
|
||||
<p><a href="/profile/reset/service/{{ serviceid }}/1">Reset my Password</a></p>
|
||||
|
||||
{% endblock %}
|
||||
25
templates/sso/serviceaccount/resetcomplete.html
Normal file
25
templates/sso/serviceaccount/resetcomplete.html
Normal file
@@ -0,0 +1,25 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Service Account{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% if error %}
|
||||
<div style="border: 1px solid #FF0000; background: #FF7D7D; width: 100%; text-align: center;">
|
||||
<b>Error:</b> Your account has not been created. Either you already have a user on this service or a error has occured. If you think
|
||||
this is incorrect please raise a bug on the tracker.
|
||||
</div>
|
||||
{% else %}
|
||||
<p>Your account on {{ acc.service }} has been reset. Your login details are as follows:</p>
|
||||
|
||||
<table>
|
||||
<tr><td>Username:</td><td>{{ acc.service_uid }}</td></tr>
|
||||
<tr><td>Password:</td><td>{{ passwd }}</td></tr>
|
||||
</table>
|
||||
|
||||
<p><b>Warning:</b> You password is random, please either note it down or once logged into the service change it to something you
|
||||
will remember. Service passwords are not stored in the Auth system.</p>
|
||||
|
||||
<p><a href="/profile">Return to your profile page</a></p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user