Index: /main/waeup.kofa/trunk/CHANGES.txt
===================================================================
--- /main/waeup.kofa/trunk/CHANGES.txt	(revision 11679)
+++ /main/waeup.kofa/trunk/CHANGES.txt	(revision 11680)
@@ -4,4 +4,6 @@
 1.2dev (unreleased)
 ===================
+
+* Redirect to login page after using password mandate.
 
 * Adding student payment tickets is logged.
Index: /main/waeup.kofa/trunk/src/waeup/kofa/mandates/browser.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/mandates/browser.py	(revision 11679)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/mandates/browser.py	(revision 11680)
@@ -43,8 +43,7 @@
         msg = mandate.execute()
         self.flash(msg)
-        self.redirect(self.url(self.context))
         return
 
     def render(self):
-        self.redirect(self.url(self.context))
+        self.redirect(self.url(self.context, 'login'))
         return
Index: /main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py	(revision 11679)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py	(revision 11680)
@@ -70,6 +70,5 @@
             msg = _('Mandate expired.')
         if self._setPassword():
-            msg = _('Password has been successfully set. '
-                    'Proceed to the login page and enter your credentials.')
+            msg = _('Password has been successfully set.')
             username = IUserAccount(self.params['user']).name
             grok.getSite().logger.info(
Index: /main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py	(revision 11679)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py	(revision 11680)
@@ -104,6 +104,5 @@
         msg = mandate.execute()
         # Password has been set.
-        self.assertEqual(msg, 'Password has been successfully set. Proceed to '
-            'the login page and enter your credentials.')
+        self.assertEqual(msg, 'Password has been successfully set.')
         self.assertTrue(IUserAccount(student).checkPassword('mypwd1'))
         # All mandates have been removed.
@@ -123,6 +122,5 @@
         msg = mandate.execute()
         # Password has been set.
-        self.assertEqual(msg, 'Password has been successfully set. Proceed to '
-            'the login page and enter your credentials.')
+        self.assertEqual(msg, 'Password has been successfully set.')
         self.assertTrue(IUserAccount(officer).checkPassword('mypwd1'))
         logfile = os.path.join(
@@ -140,6 +138,5 @@
         msg = mandate.execute()
         # Password has been set.
-        self.assertEqual(msg, 'Password has been successfully set. Proceed to '
-            'the login page and enter your credentials.')
+        self.assertEqual(msg, 'Password has been successfully set.')
         self.assertTrue(IUserAccount(applicant).checkPassword('mypwd1'))
         logfile = os.path.join(
@@ -172,8 +169,9 @@
             % mandate.mandate_id)
         # Password has been set.
-        self.assertTrue('Password has been successfully set. Proceed to '
-                        'the login page and enter your credentials.'
+        self.assertTrue('Password has been successfully set.'
             in self.browser.contents)
         self.assertTrue(IUserAccount(student).checkPassword('mypwd1'))
         # All mandates have been removed.
         self.assertEqual(len(self.app['mandates'].keys()), 0)
+        # We redirect to login page not to the frontpage.
+        self.assertEqual(self.browser.url, 'http://localhost/app/login')
