- Timestamp:
- 6 Jun 2014, 08:55:12 (10 years ago)
- Location:
- main/waeup.kofa/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/CHANGES.txt
r11676 r11680 4 4 1.2dev (unreleased) 5 5 =================== 6 7 * Redirect to login page after using password mandate. 6 8 7 9 * Adding student payment tickets is logged. -
main/waeup.kofa/trunk/src/waeup/kofa/mandates/browser.py
r8848 r11680 43 43 msg = mandate.execute() 44 44 self.flash(msg) 45 self.redirect(self.url(self.context))46 45 return 47 46 48 47 def render(self): 49 self.redirect(self.url(self.context ))48 self.redirect(self.url(self.context, 'login')) 50 49 return -
main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py
r8860 r11680 70 70 msg = _('Mandate expired.') 71 71 if self._setPassword(): 72 msg = _('Password has been successfully set. ' 73 'Proceed to the login page and enter your credentials.') 72 msg = _('Password has been successfully set.') 74 73 username = IUserAccount(self.params['user']).name 75 74 grok.getSite().logger.info( -
main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py
r8910 r11680 104 104 msg = mandate.execute() 105 105 # Password has been set. 106 self.assertEqual(msg, 'Password has been successfully set. Proceed to ' 107 'the login page and enter your credentials.') 106 self.assertEqual(msg, 'Password has been successfully set.') 108 107 self.assertTrue(IUserAccount(student).checkPassword('mypwd1')) 109 108 # All mandates have been removed. … … 123 122 msg = mandate.execute() 124 123 # Password has been set. 125 self.assertEqual(msg, 'Password has been successfully set. Proceed to ' 126 'the login page and enter your credentials.') 124 self.assertEqual(msg, 'Password has been successfully set.') 127 125 self.assertTrue(IUserAccount(officer).checkPassword('mypwd1')) 128 126 logfile = os.path.join( … … 140 138 msg = mandate.execute() 141 139 # Password has been set. 142 self.assertEqual(msg, 'Password has been successfully set. Proceed to ' 143 'the login page and enter your credentials.') 140 self.assertEqual(msg, 'Password has been successfully set.') 144 141 self.assertTrue(IUserAccount(applicant).checkPassword('mypwd1')) 145 142 logfile = os.path.join( … … 172 169 % mandate.mandate_id) 173 170 # Password has been set. 174 self.assertTrue('Password has been successfully set. Proceed to ' 175 'the login page and enter your credentials.' 171 self.assertTrue('Password has been successfully set.' 176 172 in self.browser.contents) 177 173 self.assertTrue(IUserAccount(student).checkPassword('mypwd1')) 178 174 # All mandates have been removed. 179 175 self.assertEqual(len(self.app['mandates'].keys()), 0) 176 # We redirect to login page not to the frontpage. 177 self.assertEqual(self.browser.url, 'http://localhost/app/login')
Note: See TracChangeset for help on using the changeset viewer.