-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% extends "account/base.html" %} | ||
{% load i18n %} | ||
{% load allauth %} | ||
{% block head_title %} | ||
{% trans "Change Password" %} | ||
{% endblock head_title %} | ||
{% block content %} | ||
{% element h1 %} | ||
{% if token_fail %} | ||
{% trans "Bad Token" %} | ||
{% else %} | ||
{% trans "Change Password" %} | ||
{% endif %} | ||
{% endelement %} | ||
{% if token_fail %} | ||
{% url 'account_reset_password' as passwd_reset_url %} | ||
{% element p %} | ||
{% blocktrans %}The password reset link was invalid, possibly because it has already been used. Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktrans %} | ||
{% endelement %} | ||
{% else %} | ||
{% element form method="post" action=action_url %} | ||
{% slot body %} | ||
{% csrf_token %} | ||
{{ redirect_field }} | ||
{% element fields form=form %} | ||
{% endelement %} | ||
{% endslot %} | ||
{% slot actions %} | ||
{% element button type="submit" name="action" %} | ||
{% trans 'Change Password' %} | ||
{% endelement %} | ||
{% endslot %} | ||
{% endelement %} | ||
{% endif %} | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends "account/base.html" %} | ||
{% load i18n %} | ||
{% load allauth %} | ||
{% block head_title %} | ||
{% trans "Change Password" %} | ||
{% endblock head_title %} | ||
{% block content %} | ||
{% element h1 %} | ||
{% trans "Change Password" %} | ||
{% endelement %} | ||
{% element p %} | ||
{% trans 'Your password is now changed.' %} | ||
{% endelement %} | ||
{% endblock content %} |