Changeset 18166 for main/waeup.kofa/trunk/src/waeup/kofa/browser
- Timestamp:
- 3 Sep 2025, 07:38:18 (15 months ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/browser
- Files:
-
- 2 edited
-
interfaces.py (modified) (1 diff)
-
pages.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/browser/interfaces.py
r13089 r18166 189 189 ) 190 190 191 class IPWExpired(IKofaObject): 192 """Interface needed for change pasword page after password has expired. 193 194 """ 195 identifier = schema.TextLine( 196 title = _(u'Student Id'), 197 description = _( 198 u'Alternatively you can use your Matriculation or Registration Number.'), 199 required = True, 200 readonly = False, 201 ) 202 203 email = schema.ASCIILine( 204 title = _(u'Email Address'), 205 required = True, 206 constraint=validate_email, 207 ) 208 191 209 class IStudentNavigationBase(IKofaObject): 192 210 """Objects that provide student navigation should -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r18163 r18166 52 52 IDepartment, ICourse, ICertificate, 53 53 ICertificateCourse, 54 ICaptchaManager, IChangePassword )54 ICaptchaManager, IChangePassword, IPWExpired) 55 55 from waeup.kofa.browser.layout import jsaction, action, UtilityView 56 56 from waeup.kofa.interfaces import MessageFactory as _ … … 466 466 # Display appropriate flash message if credentials are correct 467 467 # but student has been deactivated or a temporary or parents 468 # password has been set .468 # password has been set or password has expired. 469 469 login = self.request.form['form.login'] 470 470 if len(login) == 8 and login in grok.getSite()['students']: … … 487 487 'because your parents have logged in.'), 488 488 type='warning') 489 return 490 # Finally we check if password has expired. 491 if student.password_expired: 492 self.redirect(self.application_url() + '/pwexpired') 489 493 return 490 494 # Now we know that the student is suspended. … … 2956 2960 '%s - %s - %s' % (ob_class, data['identifier'], data['email'])) 2957 2961 return 2962 2963 2964 class PasswordExpiredPage(ChangePasswordRequestPage): 2965 2966 grok.name('pwexpired') 2967 grok.template('pwexpired') 2968 form_fields = grok.AutoFields(IPWExpired) 2969 2970 label = _('Your password has expired!')
Note: See TracChangeset for help on using the changeset viewer.
