Add index title to Change Password page

This commit is contained in:
Lance Edgar 2024-04-25 22:17:59 -05:00
parent 6bee65780c
commit 2a22e8939c

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2023 Lance Edgar # Copyright © 2010-2024 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -24,7 +24,7 @@
Auth Views Auth Views
""" """
from rattail.db.auth import authenticate_user, set_user_password from rattail.db.auth import set_user_password
import colander import colander
from deform import widget as dfwidget from deform import widget as dfwidget
@ -188,7 +188,8 @@ class AuthenticationView(View):
self.request.session.flash("Your password has been changed.") self.request.session.flash("Your password has been changed.")
return self.redirect(self.request.get_referrer()) return self.redirect(self.request.get_referrer())
return {'form': form} return {'index_title': str(self.request.user),
'form': form}
def become_root(self): def become_root(self):
""" """