mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-02 12:13:54 +01:00
More work about #57. User password is no more stored inside the session! To finish, I just need a good way to handle http server reboots (and so python code reloading).
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ def _render(request, tpl, user_context):
|
||||
return render_to_response(tpl, user_context,
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
def _render_error(request, errortpl, user_context):
|
||||
def _render_error(request, errortpl="error", user_context={}):
|
||||
return render_to_response("common/%s.html" % errortpl, user_context,
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
|
||||
+2
-1
@@ -15,7 +15,8 @@ events = ["CreateDomain",
|
||||
"UserMenuDisplay",
|
||||
"AdminMenuDisplay",
|
||||
|
||||
"UserLogin"]
|
||||
"UserLogin",
|
||||
"UserLogout"]
|
||||
|
||||
callbacks = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user