In my case the only possibility to sigin is the LDAP method. So there is no need to manage the signin methods. It would be better to not display the option to the user in that case.
It will be not really important if the following behavior could be avoid : if the user deletes the only method available for him, the next time he will signin, the system will consider that this is his first connection. So he will have to refill the username and email. But in my case the email is unique, so the user cannot sigin anymore. The key to find a user is not the login name?
Evgeny, here is the fix I have finally done on my side in the file skin/default/template/authopenid/signin.html I simply disable the delete button if the provider is the one defined for LDAP.
@@ -139,7 +139,7 @@
<tr>
<th>{% trans %}provider{% endtrans %}</th>
<th>{% trans %}last used{% endtrans %}</th>
- <th>{% trans %}delete, if you like{% endtrans %}</th>
+ <th>{% trans %}delete, if you like and if permitted{% endtrans %}</th>
</tr>
{% for login_method in existing_login_methods %}
<tr class="ab-provider-row">
@@ -152,7 +152,11 @@
{% endif %}
</td>
<td>
- <button>{% trans %}delete{% endtrans %}</button>
+ {% if login_method.provider_name == settings.LDAP_PROVIDER_NAME %}^M
+ <button disabled="disabled">{% trans %}delete{% endtrans %}</button>
+ {% else %}
+ <button>{% trans %}delete{% endtrans %}</button>
+ {% endif %}
</td>
</tr>
{% endfor %}
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2011-05-26 06:58:39 -0500
Seen: 364 times
Last updated: May 31 '11
Can the interface for searching with tags be improved?
Feature request: Add classes to body in default skin
Search related questions when posting a question
Please allow diacritic characters for user names.
Please allow hyphens for user names.
can (should) users send email or post messages to moderators? [done]
Plans to support attachments other than images? [done]
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.