Changeset 7407 for main/waeup.sirp/trunk/src/waeup/sirp/students
- Timestamp:
- 20 Dec 2011, 11:05:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7404 r7407 2234 2234 IUserAccount(student).setPassword(pwd) 2235 2235 # Send email with new redentials 2236 username = student.student_id2237 fullname = student.display_fullname2238 subject = 'Your SIRP credentials'2239 2236 msg = 'You have successfully changed your password for the' 2240 email_to = student.email2241 2237 login_url = self.url(grok.getSite(), 'login') 2242 success = sirp_utils.send Password(fullname,msg,username,2243 pwd,login_url,email_to,subject)2238 success = sirp_utils.sendCredentials( 2239 IUserAccount(student),pwd,login_url,msg) 2244 2240 if success: 2245 2241 self.flash('An email with your user name and password ' + 2246 'has been sent to %s.' % email _to)2242 'has been sent to %s.' % email) 2247 2243 else: 2248 2244 self.flash('An smtp server error occurred.')
Note: See TracChangeset for help on using the changeset viewer.