# HG changeset patch # User Mads Kiilerich # Date 2014-08-12 13:08:23 # Node ID 4ec7189bb164ba7a6dff1f06748116d4babfdb42 # Parent 03cc203d3e989821c7db9ebc6ff3ca5e7e91da11 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. diff --git a/kallithea/templates/base/base.html b/kallithea/templates/base/base.html --- a/kallithea/templates/base/base.html +++ b/kallithea/templates/base/base.html @@ -314,7 +314,7 @@
- %if c.authuser.username == 'default': + %if c.authuser.username == 'default' or c.authuser.user_id is None:

${_('Login to your account')}

${h.form(h.url('login_home',came_from=h.url.current()))}