Changeset 5045


Ignore:
Timestamp:
10 Mar 2010, 08:48:18 (15 years ago)
Author:
Henrik Bettermann
Message:

Passwords must not be empty (isn't checked by Password Widget).

File:
1 edited

Legend:

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

    r3273 r5045  
    6161old_password = request.get('widget__old_password')
    6262if not wt.checkPassword(student_id,old_password):
    63     psm = "Old Password is not correct"
     63    psm = "Old password is not correct!"
    6464    return context.change_password_form(rendered = res,
    6565                             psm = psm,
     
    7171#set_trace()
    7272password = request.get('widget__password')
     73if not len(password):
     74    psm = "Please enter a new password!"
     75    return context.change_password_form(rendered = res,
     76                             psm = psm,
     77                             ds = ds,
     78                             mode = "edit",
     79                             formaction = "change_password",
     80                             button = "Change Password",
     81                             )
     82
    7383wt.editPassword(student_id,password)
    7484logger.info('%s changed password from %s to %s' % (member_id,old_password,password))
Note: See TracChangeset for help on using the changeset viewer.