Index: /main/waeup.uniben/trunk/src/waeup/uniben/browser/pages.py
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/browser/pages.py	(revision 9708)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/browser/pages.py	(revision 9709)
@@ -18,5 +18,6 @@
 import grok
 from waeup.kofa.browser.pages import (
-    SessionConfigurationAddFormPage, SessionConfigurationManageFormPage)
+    SessionConfigurationAddFormPage, SessionConfigurationManageFormPage,
+    LoginPage)
 from waeup.uniben.interfaces import (
     ICustomSessionConfiguration, ICustomSessionConfigurationAdd)
@@ -31,2 +32,7 @@
     """
     form_fields = grok.AutoFields(ICustomSessionConfiguration)
+
+class CustomLoginPage(LoginPage):
+
+    def _comment(self, student):
+        return None
Index: /main/waeup.uniben/trunk/src/waeup/uniben/locales/en/LC_MESSAGES/waeup.kofa.po
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/locales/en/LC_MESSAGES/waeup.kofa.po	(revision 9708)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/locales/en/LC_MESSAGES/waeup.kofa.po	(revision 9709)
@@ -18,2 +18,5 @@
 msgstr "<strong>Notice:</strong> All student ids now start with 'B'. If your data have been migrated from the old portal just put 'B' in front of your old id. Your password has not changed.<br/><br/> Example: A123456 becomes BA123456  </br></br>The following ids are also  increased by one: A660679, A713978, A918093, B108215, B581313, B813281, C562575, C822243, D175969, E404483, E702275, E800008, F188239, F805950, F870881, F972478, H388222, H494715, H872022, H928836, K259461, K707682, K905447, K966006, L711372, M470637, M607029, N213198, N711778, P238823, P574469, P859084, Q584421, R490843, R685843, S612864, S869805, T108421, T381694, T382742, U105096, U125357, U527275, U812211, V356717, V660864, V960757, W200815, W248308, W366235, W979675, X138066, X157731, X686433, Y152186, Y375319 <br/><br/> Example: A660679 becomes BA660680 "
 
+msgid "This message will be shown if and only if deactivated students try to login."
+msgstr "This is a private comment the student can't see."
+
Index: /main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
===================================================================
--- /main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py	(revision 9708)
+++ /main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py	(revision 9709)
@@ -666,2 +666,16 @@
         self.assertEqual(self.student.state, 'courses registered')
         return
+
+    def test_login(self):
+        # If suspended_comment is set this message will be flashed instead
+        self.student.suspended_comment = u'Aetsch baetsch!'
+        self.student.suspended = True
+        self.browser.open(self.login_path)
+        self.browser.getControl(name="form.login").value = self.student_id
+        self.browser.getControl(name="form.password").value = 'spwd'
+        self.browser.getControl("Login").click()
+        # Uniben does not display suspended_comment
+        self.assertMatches(
+            '...<div class="alert-message warning">Your account has been deactivated.</div>...',
+            self.browser.contents)
+        self.student.suspended = False
