web/views/basetemplates.py
changeset 8706 e362054d9701
parent 8697 574bb05e40a4
child 8974 c8520188eb4b
equal deleted inserted replaced
8705:5b3e17a63fad 8706:e362054d9701
   496             w(u'<div class="loginMessage">%s</div>\n' % self._cw.message)
   496             w(u'<div class="loginMessage">%s</div>\n' % self._cw.message)
   497         config = self._cw.vreg.config
   497         config = self._cw.vreg.config
   498         if config['auth-mode'] != 'http':
   498         if config['auth-mode'] != 'http':
   499             self.login_form(id) # Cookie authentication
   499             self.login_form(id) # Cookie authentication
   500         w(u'</div>')
   500         w(u'</div>')
   501         if self._cw.https and config.anonymous_user()[0]:
   501         if self._cw.https and config.anonymous_user()[0] and config['https-deny-anonymous']:
   502             path = xml_escape(config['base-url'] + self._cw.relative_path())
   502             path = xml_escape(config['base-url'] + self._cw.relative_path())
   503             w(u'<div class="loginMessage"><a href="%s">%s</a></div>\n'
   503             w(u'<div class="loginMessage"><a href="%s">%s</a></div>\n'
   504               % (path, self._cw._('No account? Try public access at %s') % path))
   504               % (path, self._cw._('No account? Try public access at %s') % path))
   505         w(u'</div>\n')
   505         w(u'</div>\n')
   506 
   506