first commit
This commit is contained in:
35
templates/account/password_reset_from_key.html
Executable file
35
templates/account/password_reset_from_key.html
Executable file
@@ -0,0 +1,35 @@
|
||||
{% extends "account/base_entrance.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 %}
|
||||
Reference in New Issue
Block a user