diff --git a/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_analyzePassword.xml b/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_analyzePassword.xml index 76f8437261231ae65d3dbb3ecc0adaa0c7451870..cf7f006e03b5ef441d0a5f7f062292a834473175 100644 --- a/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_analyzePassword.xml +++ b/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_analyzePassword.xml @@ -50,7 +50,7 @@ </item> <item> <key> <string>_params</string> </key> - <value> <string>password, request={}</string> </value> + <value> <string>password, request=None</string> </value> </item> <item> <key> <string>_proxy_roles</string> </key> diff --git a/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_notifyLoginFailure.py b/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_notifyLoginFailure.py index e316a903ccd4c4750876074347f8bac321d2bde2..eb638f094e39e67257e0be6cf978667b394ec60c 100644 --- a/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_notifyLoginFailure.py +++ b/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_notifyLoginFailure.py @@ -1,7 +1,6 @@ """ File a failed authentication attempt. """ -from DateTime import DateTime portal = context.getPortalObject() portal_preferences = portal.portal_preferences diff --git a/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_unblockLogin.py b/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_unblockLogin.py index 66bfbb82b2ec18266708ff56b03c8b6e5f98cd6f..742b2e41e9343e7b6a84c0f4d5dc049aad8b38a1 100644 --- a/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_unblockLogin.py +++ b/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/Login_unblockLogin.py @@ -10,8 +10,6 @@ if not portal.portal_preferences.isAuthenticationPolicyEnabled(): now = DateTime() one_second = 1/24.0/60.0/60.0 check_duration = portal_preferences.getPreferredAuthenticationFailureCheckDuration() -block_duration = portal_preferences.getPreferredAuthenticationFailureBlockDuration() -max_authentication_failures = portal_preferences.getPreferredMaxAuthenticationFailure() check_time = now - check_duration*one_second # acknowledge last authentication events for user diff --git a/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/SystemEventModule_expireAuthenticationEventList.py b/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/SystemEventModule_expireAuthenticationEventList.py index 65effc083efe63377969c4dbe5a7900cc7a6e4d2..cf0af45c2596856eb353ec9c2771e8a1d2a0ee26 100644 --- a/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/SystemEventModule_expireAuthenticationEventList.py +++ b/bt5/erp5_authentication_policy/SkinTemplateItem/portal_skins/erp5_authentication_policy/SystemEventModule_expireAuthenticationEventList.py @@ -3,7 +3,6 @@ """ from DateTime import DateTime from Products.ZSQLCatalog.SQLCatalog import Query -from Products.ERP5Type.Document import newTempBase portal = context.getPortalObject() portal_preferences = portal.portal_preferences diff --git a/bt5/erp5_authentication_policy/bt/skip_coding_style_test b/bt5/erp5_authentication_policy/bt/skip_coding_style_test deleted file mode 100644 index 56a6051ca2b02b04ef92d5150c9ef600403cb1de..0000000000000000000000000000000000000000 --- a/bt5/erp5_authentication_policy/bt/skip_coding_style_test +++ /dev/null @@ -1 +0,0 @@ -1 \ No newline at end of file