Changeset 3861 for WAeUP_SRP


Ignore:
Timestamp:
18 Jan 2009, 10:01:45 (16 years ago)
Author:
Henrik Bettermann
Message:

do log also unsuccessful attempts

File:
1 edited

Legend:

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

    r3859 r3861  
    4545                             )
    4646if 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))
    4755    return context.retrieve_password_form(rendered = res,
    4856                                 psm = "Please correct your input!",
Note: See TracChangeset for help on using the changeset viewer.