--- a/web/views/sessions.py Fri Feb 14 17:52:49 2014 +0100
+++ b/web/views/sessions.py Mon Feb 17 11:13:27 2014 +0100
@@ -95,13 +95,11 @@
# reopening. Is it actually a problem?
if 'last_login_time' in req.vreg.schema:
self._update_last_login_time(req)
- req.set_message(req._('welcome %s !') % req.user.login)
+ req.set_message(req._('welcome %s!') % req.user.login)
def _update_last_login_time(self, req):
# XXX should properly detect missing permission / non writeable source
# and avoid "except (RepositoryError, Unauthorized)" below
- if req.user.cw_metainformation()['source']['type'] == 'ldapuser':
- return
try:
req.execute('SET X last_login_time NOW WHERE X eid %(x)s',
{'x' : req.user.eid})