If the demo application is activated, an announcement now appears on the login page to inform visitors on how to use the demo.

This commit is contained in:
Antoine Nguyen
2011-11-18 23:42:31 +01:00
parent efc024ad93
commit d23923a248
8 changed files with 83 additions and 27 deletions
+3 -1
View File
@@ -39,9 +39,11 @@ def dologin(request):
error = _("Your username and password didn't match. Please try again.")
else:
form = LoginForm()
next = request.GET.has_key("next") and request.GET["next"] or None
return render_to_response("registration/login.html", {
"form" : form, "error" : error, "next" : next
"form" : form, "error" : error, "next" : next,
"annoucements" : events.raiseQueryEvent("GetAnnouncement", target="loginpage")
}, context_instance=RequestContext(request))
def dologout(request):