X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fhomeview.py;h=718ba601df7259943a5d44662fc0f6d73d0a3fcb;hb=refs%2Fheads%2Ffibre;hp=90b134db687ecd51c984f3ccbd804befdcdc0c58;hpb=c4cd92983e234a85010b3d4079013619709251ad;p=myslice.git diff --git a/portal/homeview.py b/portal/homeview.py index 90b134db..718ba601 100644 --- a/portal/homeview.py +++ b/portal/homeview.py @@ -64,7 +64,7 @@ class HomeView (FreeAccessView, ThemeView): ################################################# ## first you must open a connection to the server try: - # Connect to NOC + # Connect to UFRJ l = ldap.initialize("ldap://200.130.15.186:389") # Bind/authenticate with a root user to search all objects l.simple_bind_s("cn=Manager,dc=br,dc=fibre","fibre2013") @@ -316,8 +316,9 @@ class HomeView (FreeAccessView, ThemeView): else: # log user activity #activity.user.login(self.request, "error") - env['state'] = "Your username and/or password were incorrect." - + + env['state'] = "Your username and/or password were incorrect." + return render_to_response(self.template, env, context_instance=RequestContext(request)) def get (self, request, state=None):