web/views/authentication.py
branchstable
changeset 4856 c8f887a5b2fa
parent 4855 e69b2f2f2d61
child 4910 f40fddaa79ad
equal deleted inserted replaced
4855:e69b2f2f2d61 4856:c8f887a5b2fa
   125             retreiver_.authenticated(req, cnx, retreiver)
   125             retreiver_.authenticated(req, cnx, retreiver)
   126         return cnx
   126         return cnx
   127 
   127 
   128     def _authenticate(self, req, login, authinfo):
   128     def _authenticate(self, req, login, authinfo):
   129         # remove possibly cached cursor coming from closed connection
   129         # remove possibly cached cursor coming from closed connection
   130         clear_cache(req, 'cursor')
       
   131         cnxprops = ConnectionProperties(self.vreg.config.repo_method,
   130         cnxprops = ConnectionProperties(self.vreg.config.repo_method,
   132                                         close=False, log=self.log_queries)
   131                                         close=False, log=self.log_queries)
   133         try:
   132         try:
   134             cnx = repo_connect(self.repo, login, cnxprops=cnxprops, **authinfo)
   133             cnx = repo_connect(self.repo, login, cnxprops=cnxprops, **authinfo)
   135         except AuthenticationError:
   134         except AuthenticationError: