fixed some bugs with singleton and remobed password from session.auth.user

This commit is contained in:
mdipierro
2012-09-30 07:26:23 -05:00
parent 5f727f6e6e
commit 2348709622
4 changed files with 10 additions and 9 deletions
+1
View File
@@ -1710,6 +1710,7 @@ class Auth(object):
login the user = db.auth_user(id)
"""
user = Storage(self.table_user()._filter_fields(user,id=True))
if 'password' in user: del user.password
current.session.auth = Storage(
user = user,
last_visit = current.request.now,