mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-22 14:19:28 +00:00
Reworking of SSO app for CBVs
This commit is contained in:
@@ -11,12 +11,13 @@
|
||||
<p>This service will reset your password for all External Auth API Services. If you wish to continue please enter a new
|
||||
password below.</p>
|
||||
|
||||
<form action="{% url sso.views.set_apipasswd %}" method="post">
|
||||
<form action="{% url sso-apipassword %}" method="post">
|
||||
<fieldset>
|
||||
{% include "formtools/formerror.html" %}
|
||||
{% include "formtools/formfield.html" with field=form.password %}
|
||||
{% include "formtools/formfield.html" with field=form.password2 %}
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="Reset Account" class="btn primary" />
|
||||
<input type="submit" value="Change Password" class="btn primary" />
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<h1>Change Email Address</h1>
|
||||
</div>
|
||||
|
||||
<form action="" method="post">
|
||||
<form action="{% url sso-emailupdate %}" method="post">
|
||||
<fieldset>
|
||||
{% include "formtools/formerror.html" %}
|
||||
{% include "formtools/formfield.html" with field=form.email1 %}
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
{% block title %}Change your Primay Character{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="page-header">
|
||||
<h1>Change Your Primary Character</h1>
|
||||
</div>
|
||||
|
||||
<p>Your primary character is used across auth services to show as your display name and corporation. Please set this to which character you consider your "main".</p>
|
||||
|
||||
|
||||
@@ -33,14 +33,14 @@
|
||||
<div class="active" id="overview">
|
||||
<p>
|
||||
<b>Username:</b> {{ user.username }}<br/>
|
||||
<b>Email:</b> {{ user.email }} (<a href="{% url sso.views.email_change %}">change</a>)<br/>
|
||||
<b>Primary Character:</b> {{ user.get_profile.primary_character }} (<a href="{% url sso.views.primarychar_change %}">change</a>)<br/>
|
||||
<b>Email:</b> {{ user.email }} (<a href="{% url sso-emailupdate %}">change</a>)<br/>
|
||||
<b>Primary Character:</b> {{ user.get_profile.primary_character }} (<a href="{% url sso-primarycharacterupdate %}">change</a>)<br/>
|
||||
<b>Groups:</b> {{ user.groups.all|join:", " }}<br/>
|
||||
</p>
|
||||
<h2>Passwords</h2>
|
||||
<p>
|
||||
<a href="{% url django.contrib.auth.views.password_change %}" class="btn">Change Auth Login Password</a>
|
||||
<a href="{% url sso.views.set_apipasswd %}" class="btn">Change Services Password</a><br/><br/>
|
||||
<a href="{% url sso-apipassword %}" class="btn">Change Services Password</a><br/><br/>
|
||||
<span class="label info">Note</span> Changing your services password will change it for all linked sites (forums, wiki, reimbursement tool)
|
||||
</p>
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
</table>
|
||||
{% endif %}
|
||||
<p>
|
||||
<a href="{% url sso.views.service_add %}" class="btn">Add Service</a>
|
||||
<a href="{% if available_services > 0 %}{% url sso.views.service_add %}{% else %}#{% endif %}" class="btn{% if available_services == 0 %} disabled{% endif %}">Add Service</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
@@ -144,9 +144,8 @@
|
||||
{% endif %}
|
||||
<p>
|
||||
<a href="{% url reddit-addaccount %}" class="btn">Add a Reddit account</a>
|
||||
<a href="{% url sso-reddittagging %}" class="btn">{% if user.get_profile.tag_reddit_accounts %}Disable{% else %}Enable{% endif %} Reddit Flare</a>
|
||||
</p>
|
||||
|
||||
<p>Reddit account tagging is {% if user.get_profile.tag_reddit_accounts %}Enabled{% else %}Disabled{% endif %}. <a href="{% url sso.views.toggle_reddit_tagging %}">{% if user.get_profile.tag_reddit_accounts %}Disable{% else %}Enable{% endif %}</a></p>
|
||||
</div>
|
||||
{% endifswitch %}
|
||||
{% endif %}
|
||||
|
||||
@@ -13,5 +13,5 @@
|
||||
you have recently joined a corporation, then please use the "Refresh"
|
||||
option on your API key</p>
|
||||
|
||||
<p><a href="{% url sso.views.profile %}">Return to your Profile</a></p>
|
||||
<p><a href="{% url sso-profile %}">Return to your Profile</a></p>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user