Index: /main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py	(revision 13986)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/mandates/mandate.py	(revision 13987)
@@ -70,5 +70,5 @@
         if self.expires < datetime.utcnow():
             msg = _('Mandate expired.')
-        if self._setPassword():
+        elif self._setPassword():
             msg = _('Password has been successfully set. '
                     'Login with your new password.')
Index: /main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py	(revision 13986)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/mandates/tests.py	(revision 13987)
@@ -89,4 +89,5 @@
         # Add and execute a mandate with missing parameters.
         mandate = PasswordMandate()
+        IUserAccount(student).setPassword('old_pw')
         self.app['mandates'].addMandate(mandate)
         (msg, redirect_path) = mandate.execute()
@@ -95,8 +96,12 @@
         # Add and execute an expired mandate.
         mandate = PasswordMandate(days=0)
+        mandate.params['user'] = student
+        mandate.params['password'] = 'mypwd1'
         self.app['mandates'].addMandate(mandate)
         (msg, redirect_path) = mandate.execute()
         self.assertEqual(msg, u'Mandate expired.')
         self.assertEqual(redirect_path, '')
+        # Password has not been set
+        self.assertTrue(IUserAccount(student).checkPassword('old_pw'))
         # Add and execute a perfect mandate
         mandate = PasswordMandate()
