Index: main/waeup.kofa/trunk/src/waeup/kofa/students/authentication.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/students/authentication.py	(revision 15606)
+++ main/waeup.kofa/trunk/src/waeup/kofa/students/authentication.py	(revision 18166)
@@ -20,5 +20,5 @@
 """
 import grok
-import time
+from datetime import datetime
 from zope.component import getUtility
 from zope.password.interfaces import IPasswordManager
@@ -109,4 +109,5 @@
         passwordmanager = getUtility(IPasswordManager, 'SSHA')
         self.context.password = passwordmanager.encodePassword(password)
+        self.context.password_updated = datetime.utcnow()
 
     def checkPassword(self, password):
@@ -114,6 +115,6 @@
         students, the temporary password was set by officers or
         the parents_password was set by parents.
-        We additionally check if student account has been suspended
-        or if the portal is blocked.
+        We additionally check if student account has been suspended,
+        if the portal is blocked or the password has expired.
         """
         try:
@@ -137,4 +138,6 @@
         if self.context.suspended == True:
             return False
+        if self.context.password_expired:
+            return False
         return passwordmanager.checkPassword(self.context.password, password)
 
