Changeset - 4ec7189bb164
[Not reviewed]
default
0 1 0
Mads Kiilerich - 11 years ago 2014-08-12 13:08:23
madski@unity3d.com
auth: unauthenticated users do not have full_name_or_username - show login box instead

AuthUser is only fully populated after it has been loaded with db fields ...
but that only happens for authenticated users. Anonymous users could thus
trigger a crash.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/base/base.html
Show inline comments
 
@@ -314,7 +314,7 @@
 

	
 
      <div class="user-menu">
 
        <div id="quick_login">
 
          %if c.authuser.username == 'default':
 
          %if c.authuser.username == 'default' or c.authuser.user_id is None:
 
            <h4>${_('Login to your account')}</h4>
 
            ${h.form(h.url('login_home',came_from=h.url.current()))}
 
            <div class="form">
0 comments (0 inline, 0 general)