equal
deleted
inserted
replaced
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 |