- Timestamp:
- 23 Oct 2015, 06:41:21 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r13247 r13344 2776 2776 grok.template('requestpw') 2777 2777 form_fields = grok.AutoFields(IStudentRequestPW).select( 2778 ' firstname','number','email')2778 'lastname','number','email') 2779 2779 label = _('Request password for first-time login') 2780 2780 … … 2804 2804 return 2805 2805 number = data.get('number','') 2806 firstname = data.get('firstname','')2806 lastname = data.get('lastname','') 2807 2807 cat = getUtility(ICatalog, name='students_catalog') 2808 2808 results = list( … … 2813 2813 if results: 2814 2814 student = results[0] 2815 if getattr(student,' firstname',None) is None:2815 if getattr(student,'lastname',None) is None: 2816 2816 self.flash(_('An error occurred.'), type="danger") 2817 2817 return 2818 elif student. firstname.lower() != firstname.lower():2818 elif student.lastname.lower() != lastname.lower(): 2819 2819 # Don't tell the truth here. Anonymous must not 2820 # know that a record was found and only the firstname2820 # know that a record was found and only the lastname 2821 2821 # verification failed. 2822 2822 self.flash(_('No student record found.'), type="warning")
Note: See TracChangeset for help on using the changeset viewer.