Ignore:
Timestamp:
20 Dec 2011, 11:53:30 (13 years ago)
Author:
Henrik Bettermann
Message:

Set password and print password on the application slip.

Alternatively, we can think about using the sendCredentials method and send mails with random passwords immediately after the student has been created.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/applicant.py

    r7406 r7409  
    3131from waeup.sirp.interfaces import (
    3232    IObjectHistory, IFileStoreHandler, IFileStoreNameChooser, ISIRPUtils,
    33     IExtFileStore, IPDF)
     33    IExtFileStore, IPDF, IUserAccount)
    3434from waeup.sirp.students.vocabularies import RegNumNotInSource
    3535from waeup.sirp.utils.helpers import attrs_to_fields, get_current_principal
     
    107107
    108108        # Set password
     109        IUserAccount(student).setPassword(self.application_number)
    109110
    110111        # Save the certificate
Note: See TracChangeset for help on using the changeset viewer.