Changeset 1202 for WAeUP_SRP/trunk


Ignore:
Timestamp:
5 Jan 2007, 11:24:00 (18 years ago)
Author:
joachim
Message:

catch dupplicat pw entry (in custom)

File:
1 edited

Legend:

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

    r1179 r1202  
    4343    psm = "You did not check the ackkowledge box!"
    4444else:
    45     psm = ''
     45    try:
     46        password = REQUEST.get('widget__password')
     47        context.waeup_tool.makeStudentMember(sid,password=password)
     48        psm = ''
     49    except KeyError:
     50        psm = "You are already registered please log in with your UserId %s" % sid
     51        logger.info('"%s","repeatedly tried to set password"' % sid)
    4652if psm != '':
    4753    return context.set_access_data_form(rendered = res,
     
    5359                                 name = "%(name)s" % REQUEST.form
    5460                                 )
    55 password = REQUEST.get('widget__password')
    5661email = ds.get('email')
    57 context.waeup_tool.makeStudentMember(sid,password=password)
    5862args = {}
    5963args['__ac_name'] = sid
Note: See TracChangeset for help on using the changeset viewer.