web/views/basetemplates.py
changeset 11234 558e5a6d1ec3
parent 9778 23bad0114b84
child 11371 2cc16363d6a3
equal deleted inserted replaced
11233:f24e83a82a4f 11234:558e5a6d1ec3
   506                 stitle = xml_escape(stitle)
   506                 stitle = xml_escape(stitle)
   507             else:
   507             else:
   508                 stitle = u' '
   508                 stitle = u' '
   509             w(u'<div class="loginTitle">%s</div>' % stitle)
   509             w(u'<div class="loginTitle">%s</div>' % stitle)
   510         w(u'<div class="loginContent">\n')
   510         w(u'<div class="loginContent">\n')
   511         if showmessage and self._cw.message:
   511         # don't call self._cw.message twice since it pops the id
   512             w(u'<div class="loginMessage">%s</div>\n' % self._cw.message)
   512         msg = self._cw.message
       
   513         if showmessage and msg:
       
   514             w(u'<div class="loginMessage">%s</div>\n' % msg)
   513         config = self._cw.vreg.config
   515         config = self._cw.vreg.config
   514         if config['auth-mode'] != 'http':
   516         if config['auth-mode'] != 'http':
   515             self.login_form(id) # Cookie authentication
   517             self.login_form(id) # Cookie authentication
   516         w(u'</div>')
   518         w(u'</div>')
   517         if self._cw.https and config.anonymous_user()[0] and config['https-deny-anonymous']:
   519         if self._cw.https and config.anonymous_user()[0] and config['https-deny-anonymous']: