mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-22 14:19:28 +00:00
Added delete confirmation for services. Generally cleanup of service views
This commit is contained in:
@@ -9,13 +9,13 @@
|
||||
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>
|
||||
<p>Your account on {{ acc.service }} has been created. Your login details are as follows:</p>
|
||||
|
||||
<table>
|
||||
<tr><td>Service:</td><td>{{ account.service.name }}</td></tr>
|
||||
<tr><td>Service URL:</td><td><a href="{{ account.service.url }}">{{ account.service.url }}</a></td></tr>
|
||||
<tr><td>Username:</td><td>{{ account.service_uid }}</td></tr>
|
||||
<tr><td>Password:</td><td>{{ account.password }}</td></tr>
|
||||
<tr><td>Service:</td><td>{{ acc.service.name }}</td></tr>
|
||||
<tr><td>Service URL:</td><td><a href="{{ acc.service.url }}">{{ acc.service.url }}</a></td></tr>
|
||||
<tr><td>Username:</td><td>{{ acc.service_uid }}</td></tr>
|
||||
<tr><td>Password:</td><td>{{ acc.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
|
||||
|
||||
16
templates/sso/serviceaccount/deleteconfirm.html
Normal file
16
templates/sso/serviceaccount/deleteconfirm.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}External Service Account{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p><b>Warning</b>: This will delete your account on {{ acc.service.name }}, you will no longer be able to login and in some situtations unable to
|
||||
create a new account until fixed by a Sysop. If you are having issues logging in then please <b>use the password reset function first!</b></p>
|
||||
|
||||
<p>If you are sure, then please click confirm</p>
|
||||
|
||||
<form action="/profile/del/service/{{ acc.id }}/" method="post">
|
||||
<input name="confirm-delete" type="hidden" value="1"/>
|
||||
<input type="submit" value="Confirm Delete" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user