Changeset 3862
- Timestamp:
- 18 Jan 2009, 10:17:02 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/retrieve_password.py
r3861 r3862 45 45 ) 46 46 if psm == 'invalid': 47 reg_no = ds.get('reg_no') 48 email = ds.get('email') 49 record = ds.get('record') 50 email_cat = record.email 51 if email: 52 logger.info('%s: %s does not match %s' % (reg_no,email,email_cat)) 53 else: 54 logger.info('%s: no email provided' % (reg_no)) 47 reg_no = ds.get('reg_no') 48 try: 49 email = ds.get('email') 50 record = ds.get('record') 51 email_cat = record.email 52 if email: 53 logger.info('%s: %s does not match %s' % (reg_no,email,email_cat)) 54 else: 55 logger.info('%s: no email provided' % (reg_no)) 56 except: 57 logger.info('wrong reg number %s' % (reg_no)) 55 58 return context.retrieve_password_form(rendered = res, 56 59 psm = "Please correct your input!",
Note: See TracChangeset for help on using the changeset viewer.