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

Harmonize sendCredentials which can now be used for all kinds of users.

File:
1 edited

Legend:

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

    r7399 r7407  
    10641064        # Send email with credentials
    10651065        login_url = self.url(grok.getSite(), 'login')
    1066         if sirp_utils.sendCredentials(applicant, password, login_url):
     1066        msg = 'You have successfully been registered for the'
     1067        if sirp_utils.sendCredentials(IUserAccount(applicant),
     1068            password, login_url, msg):
    10671069            self.redirect(self.url(self.context, 'registration_complete',
    10681070                                   data = dict(email=applicant.email)))
Note: See TracChangeset for help on using the changeset viewer.