mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2025-07-04 03:13:16 -07:00
add password reset
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
{% url 'accounts:edit_profile' as edit_profile_url %}
|
||||
{% url 'accounts:password_change' as password_change_url %}
|
||||
{% url 'audio:new_feed' as new_feed_url %}
|
||||
{% url 'accounts:password_reset' as password_reset_url %}
|
||||
|
||||
{% if request.path == login_url %}
|
||||
{% firstof 'Login' as submit %}
|
||||
@ -16,6 +17,8 @@
|
||||
{% firstof 'Update' as submit %}
|
||||
{% elif request.path == new_feed_url %}
|
||||
{% firstof 'Submit' as submit %}
|
||||
{% elif request.path == password_reset_url %}
|
||||
{% firstof 'Reset Password' as submit %}
|
||||
{% endif %}
|
||||
|
||||
{% include "base_navbar.html" %}
|
||||
@ -49,6 +52,9 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if request.path == login_url %}
|
||||
<p>Forgot Password? <a href="{% url 'accounts:password_reset' %}">Reset Password</a></p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -9,6 +9,9 @@
|
||||
{% url 'audio:new_feed' as new_feed_url %}
|
||||
{% url 'audio:feeds' as feeds_url %}
|
||||
{% url 'audio:home' as home_url %}
|
||||
{% url 'accounts:password_reset' as password_reset_url %}
|
||||
{% url 'accounts:password_reset_done' as password_reset_done_url %}
|
||||
{% url 'accounts:password_reset_complete' as password_reset_complete_url %}
|
||||
|
||||
{% if request.path == login_url %}
|
||||
Login?
|
||||
@ -26,6 +29,12 @@
|
||||
Feeds
|
||||
{% elif request.path == home_url %}
|
||||
Home
|
||||
{% elif request.path == password_reset_url %}
|
||||
Reset Password?
|
||||
{% elif request.path == password_reset_done_url %}
|
||||
Password Reset Sent
|
||||
{% elif request.path == password_reset_complete_url %}
|
||||
Password Reset Complete
|
||||
{% endif %}
|
||||
|
||||
{{ heading }}
|
||||
|
Reference in New Issue
Block a user