Skip to content
Snippets Groups Projects
Commit 5fdb57e9 authored by Jan Mach's avatar Jan Mach
Browse files

Fix: Fixed accessing attribute of undefined object.

parent a5652699
No related branches found
No related tags found
No related merge requests found
......@@ -20,4 +20,4 @@ open-source project.
__author__ = "Jan Mach <jan.mach@cesnet.cz>"
__credits__ = "Pavel Kácha <pavel.kacha@cesnet.cz>, Andrea Kropáčová <andrea.kropacova@cesnet.cz>"
__version__ = "2.7.8"
__version__ = "2.7.9"
......@@ -638,6 +638,13 @@ class BaseLoginView(SimpleView):
)
self.abort(500)
if not user:
self.flash(
gettext('You have entered wrong login credentials.'),
vial.const.FLASH_FAILURE
)
self.abort(403)
if not user.enabled:
self.flash(
flask.Markup(gettext(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment