profile cleanup start and new auth table for better security

This commit is contained in:
Rushabh Mehta
2012-07-13 14:54:40 +05:30
parent 981446c7cc
commit 91ba346354
7 changed files with 35 additions and 23 deletions

View File

@@ -40,8 +40,9 @@ def on_login_post_session(login_manager):
if webnotes.session['user'] not in ('Guest', 'demo@webnotestech.com'):
# create feed
from webnotes.utils import nowtime
from webnotes.profile import get_user_fullname
home.make_feed('Login', 'Profile', login_manager.user, login_manager.user,
'%s logged in at %s' % (login_manager.user_fullname, nowtime()),
'%s logged in at %s' % (get_user_fullname, nowtime()),
login_manager.user=='Administrator' and '#8CA2B3' or '#1B750D')