Ignore:
Timestamp:
6 Mar 2008, 06:56:32 (17 years ago)
Author:
Henrik Bettermann
Message:

don't log out if staff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/change_password.py

    r2942 r3273  
    7272password = request.get('widget__password')
    7373wt.editPassword(student_id,password)
     74logger.info('%s changed password from %s to %s' % (member_id,old_password,password))
     75
     76if context.isStaff():
     77    return 'Password changed!'
     78
    7479args = {}
    7580args['__ac_name'] = student_id
    7681args['__ac_password'] = password
    77 logger.info('%s changed password from %s to %s' % (member_id,old_password,password))
     82
    7883from urllib import urlencode
    7984url = "%s/logged_in?%s" % (context.absolute_url(),urlencode(args))
Note: See TracChangeset for help on using the changeset viewer.