Ignore:
Timestamp:
30 Jun 2012, 07:03:20 (13 years ago)
Author:
Henrik Bettermann
Message:

Let's use the PasswordMandate? also for change password requests (part1).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r8856 r8857  
    6464from waeup.kofa.hostels.hostel import NOT_OCCUPIED
    6565from waeup.kofa.utils.helpers import get_current_principal, to_timezone
    66 from waeup.kofa.mandates.mandate import StudentPasswordMandate
     66from waeup.kofa.mandates.mandate import PasswordMandate
    6767
    6868grok.context(IKofaObject) # Make IKofaObject the default context
     
    19871987        kofa_utils = getUtility(IKofaUtils)
    19881988        password = kofa_utils.genPassword()
    1989         mandate = StudentPasswordMandate()
     1989        mandate = PasswordMandate()
    19901990        mandate.params['password'] = password
    19911991        mandate.params['student_id'] = student.student_id
     1992        mandate.params['user_type'] = 'student'
    19921993        site = grok.getSite()
    19931994        site['mandates'].addMandate(mandate)
Note: See TracChangeset for help on using the changeset viewer.