Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
djnro
Commits
b34d9c51
Commit
b34d9c51
authored
Nov 21, 2012
by
Leonidas Poulopoulos
Browse files
Added display error in exception handling during login
parent
1f83e8db
Changes
1
Hide whitespace changes
Inline
Side-by-side
edumanage/views.py
View file @
b34d9c51
...
...
@@ -1018,7 +1018,7 @@ def user_login(request):
error
=
_
(
"Something went wrong during user authentication. Contact your administrator %s"
%
user
)
return
render_to_response
(
'status.html'
,
{
'error'
:
error
,},
context_instance
=
RequestContext
(
request
))
except
Exception
:
except
Exception
as
e
:
error
=
_
(
"Invalid login procedure. Error: %s"
%
e
)
return
render_to_response
(
'status.html'
,
{
'error'
:
error
,},
context_instance
=
RequestContext
(
request
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment