mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 04:31:49 +02:00
rename logout form to match actual meaning
This commit is contained in:
parent
db159d7f30
commit
775da385f9
3 changed files with 6 additions and 6 deletions
|
@ -443,7 +443,7 @@ class InviteForm(FlaskForm):
|
|||
)
|
||||
|
||||
|
||||
class ConfirmLogoutForm(FlaskForm):
|
||||
class LogoutForm(FlaskForm):
|
||||
submit = SubmitField(_("Logout"))
|
||||
|
||||
|
||||
|
|
|
@ -120,8 +120,8 @@
|
|||
{% endif %}
|
||||
<li>
|
||||
<form action="{{ url_for("main.exit") }}" method="post">
|
||||
{{ g.confirm_logout_form.hidden_tag() }}
|
||||
{{ g.confirm_logout_form.submit(class="dropdown-item") }}
|
||||
{{ g.logout_form.hidden_tag() }}
|
||||
{{ g.logout_form.submit(class="dropdown-item") }}
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -40,12 +40,12 @@ from ihatemoney.emails import send_creation_email
|
|||
from ihatemoney.forms import (
|
||||
AdminAuthenticationForm,
|
||||
AuthenticationForm,
|
||||
ConfirmLogoutForm,
|
||||
DestructiveActionProjectForm,
|
||||
EditProjectForm,
|
||||
EmptyForm,
|
||||
ImportProjectForm,
|
||||
InviteForm,
|
||||
LogoutForm,
|
||||
MemberForm,
|
||||
PasswordReminder,
|
||||
ProjectForm,
|
||||
|
@ -123,7 +123,7 @@ def set_show_admin_dashboard_link(endpoint, values):
|
|||
current_app.config["ACTIVATE_ADMIN_DASHBOARD"]
|
||||
and current_app.config["ADMIN_PASSWORD"]
|
||||
)
|
||||
g.confirm_logout_form = ConfirmLogoutForm()
|
||||
g.logout_form = LogoutForm()
|
||||
|
||||
|
||||
@main.url_value_preprocessor
|
||||
|
@ -542,7 +542,7 @@ def exit():
|
|||
if request.method == "GET":
|
||||
abort(405)
|
||||
|
||||
form = ConfirmLogoutForm()
|
||||
form = LogoutForm()
|
||||
if form.validate():
|
||||
# delete the session
|
||||
session.clear()
|
||||
|
|
Loading…
Reference in a new issue