Commits

Sylvain Hellegouarch committed 11f34d3

Fixed a missing self.

  • Participants
  • Parent commits 394bf22

Comments (0)

Files changed (1)

cherrypy/lib/filter/sessionauthenticatefilter.py

             password = cpg.request.paramMap['password']
             errorMsg = self.checkLoginAndPassword(login, password)
             if errorMsg:
-                cpg.response.body = loginScreen(fromPage, login = login, errorMsg = errorMsg)
+                cpg.response.body = self.loginScreen(fromPage, login = login, errorMsg = errorMsg)
             else:
                 cpg.request.sessionMap['username'] = login
                 cpg.response.body = httptools.redirect(fromPage)
         if (not cpg.request.sessionMap.get('username')) and self.notLoggedIn:
             self.notLoggedIn()
         if not cpg.request.sessionMap.get('username'):
-            cpg.response.body = loginScreen(cpg.request.browserUrl)
+            cpg.response.body = self.loginScreen(cpg.request.browserUrl)
             return
 
         # Everything is OK: user is logged in