Correct functions for creating new users, confirming email, resetting password and forgot password.
This commit is contained in:
13
eveai_app/templates/security/email/reset_instructions.html
Normal file
13
eveai_app/templates/security/email/reset_instructions.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Reset Your Password</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Hi,</p>
|
||||
<p>You requested a password reset for your EveAI account. Click the link below to reset your password:</p>
|
||||
<p><a href="{{ reset_link }}">Reset Password</a></p>
|
||||
<p>If you did not request a password reset, please ignore this email.</p>
|
||||
<p>Thanks,<br>The EveAI Team</p>
|
||||
</body>
|
||||
</html>
|
||||
@@ -9,10 +9,16 @@
|
||||
{% include "security/_messages.html" %}
|
||||
<form action="{{ url_for_security('forgot_password') }}" method="post" name="forgot_password_form">
|
||||
{{ forgot_password_form.hidden_tag() }}
|
||||
|
||||
<p>
|
||||
{{ forgot_password_form.email.label }}<br>
|
||||
{{ forgot_password_form.email(size=80) }}
|
||||
</p>
|
||||
<p>{{ forgot_password_form.submit() }}</p>
|
||||
|
||||
{{ render_form_errors(forgot_password_form) }}
|
||||
{{ render_field_with_errors(forgot_password_form.email) }}
|
||||
{{ render_field_errors(forgot_password_form.csrf_token) }}
|
||||
{{ render_field(forgot_password_form.submit) }}
|
||||
|
||||
</form>
|
||||
{% include "security/_menu.html" %}
|
||||
<!-- {% include "security/_menu.html" %}-->
|
||||
{% endblock content %}
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
{{ login_user_form.password.label }}<br>
|
||||
{{ login_user_form.password(size=80) }}
|
||||
</p>
|
||||
{# <p>#}
|
||||
{# {{ login_user_form.remember_me }}#}
|
||||
{# {{ login_user_form.remember_me.label }}#}
|
||||
{# </p>#}
|
||||
|
||||
<p>{{ login_user_form.submit() }}</p>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{% extends "security/base.html" %}
|
||||
{% from "macros.html" import render_field %}
|
||||
|
||||
{% block title %} {{ _fsdomain('Reset password') }} {% endblock %}
|
||||
{% block content_title %} {{ _fsdomain('Reset password') }} {% endblock %}
|
||||
{% block title %} {{ _fsdomain('Reset AskEveAI password') }} {% endblock %}
|
||||
{% block content_title %} {{ _fsdomain('Reset AskEveAI password') }} {% endblock %}
|
||||
{% block content_description %}An email will be sent to you with instructions.{% endblock %}
|
||||
{% block content %}
|
||||
{# {% include "security/_messages.html" %}#}
|
||||
{# <form action="{{ url_for_security('reset_password', token=reset_password_token) }}" method="post" name="reset_password_form">#}
|
||||
{# <form action="{{ prefixed_url_for('security.reset_password', token=reset_password_token) }}" method="post" name="reset_password_form">#}
|
||||
<form action="" method="post">
|
||||
{{ reset_password_form.hidden_tag() }}
|
||||
{# {{ render_form_errors(reset_password_form) }}#}
|
||||
|
||||
Reference in New Issue
Block a user