Don't allow resets of Service Acccounts that don't need a password

This commit is contained in:
2011-01-07 09:15:53 +00:00
parent ade8ee1c69
commit 17923ca2f2
2 changed files with 3 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ create a login for a service click the Add Service link</p>
<td>{% if acc.active %}Yes{% else %}No{% endif %}</td>
<td>
{% if acc.active %}
<a href="{% url sso.views.service_reset acc.id %}">Reset</a>&nbsp;/&nbsp;
{% if acc.service.settings.require_password %}<a href="{% url sso.views.service_reset acc.id %}">Reset</a>&nbsp;/&nbsp;{% endif %}
<a href="{% url sso.views.service_del acc.id %}">Delete</a>
{% if acc.service.provide_login %}
&nbsp;/&nbsp;<a href="{% url sso.views.service_login acc.id %}">Login</a>