Commit 34f096d8 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

ERP5Site: register ERP5 Login authentication plugin.

parent d3e47c4d
......@@ -2143,6 +2143,7 @@ class ERP5Generator(PortalGenerator):
'IRoleAssignerPlugin'))
# Add ERP5UserManager
erp5security_dispatcher = p.acl_users.manage_addProduct['ERP5Security']
erp5security_dispatcher.addERP5LoginUserManager('erp5_login_users')
erp5security_dispatcher.addERP5UserManager('erp5_users')
erp5security_dispatcher.addERP5GroupManager('erp5_groups')
erp5security_dispatcher.addERP5RoleManager('erp5_roles')
......@@ -2150,6 +2151,9 @@ class ERP5Generator(PortalGenerator):
erp5security_dispatcher.addERP5DumbHTTPExtractionPlugin(
'erp5_dumb_http_extraction')
# Register ERP5UserManager Interface
p.acl_users.erp5_login_users.manage_activateInterfaces(
('IAuthenticationPlugin',
'IUserEnumerationPlugin',))
p.acl_users.erp5_users.manage_activateInterfaces(
('IAuthenticationPlugin',
'IUserEnumerationPlugin',))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment