diff --git a/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Person_isPasswordExpired.xml b/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Person_isPasswordExpired.xml index f23e49389e6feb27095418bbf395c228dd5d2a64..6a8027fb7d0816ab2f298b0b419d238bc160fb79 100644 --- a/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Person_isPasswordExpired.xml +++ b/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Person_isPasswordExpired.xml @@ -77,19 +77,18 @@ def _isPasswordExpired():\n early_warning = True\n if expire_date < now:\n # password is expired\n - context.log(\'expired %s\' %context.getReference())\n + #context.log(\'expired %s\' %context.getReference())\n return True, early_warning\n return False, early_warning\n \n -_isPasswordExpired1 = CachingMethod(_isPasswordExpired,\n +_isPasswordExpired = CachingMethod(_isPasswordExpired,\n id=\'Person_isPasswordExpired\',\n cache_factory=\'erp5_content_short\')\n is_password_expired, is_user_account_password_expired_warning_on = _isPasswordExpired()\n \n request.set(\'is_user_account_password_expired\', is_password_expired)\n request.set(\'is_user_account_password_expired_warning_on\', is_user_account_password_expired_warning_on)\n -\n -context.log(\'in --> %s %s\' %(is_password_expired, is_user_account_password_expired_warning_on))\n +#context.log(\'in --> %s %s\' %(is_password_expired, is_user_account_password_expired_warning_on))\n return is_password_expired\n diff --git a/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/logged_in.xml b/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/logged_in.xml index 9caecfc9c829bbd54455a65dff36860a4c6ef77e..10dbe77e6028ff7311a1b1842522c9c6c6033b99 100644 --- a/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/logged_in.xml +++ b/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/logged_in.xml @@ -75,7 +75,7 @@ <tal:block tal:condition="not: isAnon"\n tal:define="is_user_account_password_expired_warning_on python:request.get(\'is_user_account_password_expired_warning_on\', False);">\n \n - <!-- XXX: Password will expire soon just war user ? -->\n + <!-- Password will expire soon just war user ? -->\n <tal:block tal:condition="is_user_account_password_expired_warning_on">\n <tal:block tal:define="came_from python: request.get(\'came_from\') or here.absolute_url();\n dummy python: response.redirect(\'%s?portal_status_message=%s\' %(came_from, here.Base_translateString(\'Your password will expire soon.\')));" />\n diff --git a/bt5/erp5_authentication_policy/bt/revision b/bt5/erp5_authentication_policy/bt/revision index e440e5c842586965a7fb77deda2eca68612b1f53..bf0d87ab1b2b0ec1a11a3973d2845b42413d9767 100644 --- a/bt5/erp5_authentication_policy/bt/revision +++ b/bt5/erp5_authentication_policy/bt/revision @@ -1 +1 @@ -3 \ No newline at end of file +4 \ No newline at end of file