Commit b34d9c51 authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos
Browse files

Added display error in exception handling during login

parent 1f83e8db
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment