Ignore:
Timestamp:
29 Jun 2012, 17:28:06 (13 years ago)
Author:
Henrik Bettermann
Message:

StudentRequestPasswordPage?: Create mandate and send link by email instead of setting password directly.

Show link to StudentRequestPasswordPage? on login page.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/mandates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py

    r8849 r8853  
    6868            msg = _('Mandate expired.')
    6969        if self._setStudentPassword():
    70             msg = _('Password has been successfully set.')
     70            msg = _('Password has been successfully set. '
     71                    'Proceed to the login page and enter your credentials.')
    7172        del self.__parent__[self.mandate_id]
    7273        return msg
  • main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py

    r8850 r8853  
    104104        msg = mandate.execute()
    105105        # Password has been set.
    106         self.assertEqual(msg, u'Password has been successfully set.')
     106        self.assertEqual(msg, 'Password has been successfully set. Proceed to '
     107            'the login page and enter your credentials.')
    107108        self.assertTrue(IUserAccount(student).checkPassword('mypwd1'))
    108109        # All mandates have been removed.
     
    132133            % mandate.mandate_id)
    133134        # Password has been set.
    134         self.assertTrue('Password has been successfully set.'
     135        self.assertTrue('Password has been successfully set. Proceed to '
     136                        'the login page and enter your credentials.'
    135137            in self.browser.contents)
    136138        self.assertTrue(IUserAccount(student).checkPassword('mypwd1'))
Note: See TracChangeset for help on using the changeset viewer.