Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hugo Ricateau
erp5
Commits
d90f1a08
Commit
d90f1a08
authored
Oct 27, 2016
by
Kazuhiko Shiozaki
Committed by
Vincent Pelletier
Dec 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_credential: do not hardcode plugin class names.
parent
2f1dd643
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
bt5/erp5_credential/ExtensionTemplateItem/portal_components/extension.erp5.Credential.py
...mplateItem/portal_components/extension.erp5.Credential.py
+1
-12
No files found.
bt5/erp5_credential/ExtensionTemplateItem/portal_components/extension.erp5.Credential.py
View file @
d90f1a08
...
...
@@ -29,7 +29,6 @@
from
Products.CMFCore.utils
import
getToolByName
from
Products
import
PluggableAuthService
from
Products.ERP5Security.ERP5UserManager
import
ERP5UserManager
try
:
from
Products.ERP5Wizard.PAS.ERP5RemoteUserManager
import
ERP5RemoteUserManager
except
ImportError
:
...
...
@@ -56,17 +55,7 @@ def isLocalLoginAvailable(self, login):
acl_users
=
getToolByName
(
portal
,
'acl_users'
)
if
isinstance
(
acl_users
,
PluggableAuthServiceTool
):
#List plugin which make user enumeration user enumeration
plugin_list
=
acl_users
.
plugins
.
listPlugins
(
IUserEnumerationPlugin
)
for
plugin_name
,
plugin_value
in
plugin_list
:
#we check with instance of ERP5UserManager and ZODBUserManager
if
isinstance
(
plugin_value
,
(
ERP5UserManager
,
ZODBUserManager
,)):
user_list
=
plugin_value
.
enumerateUsers
(
id
=
login
,
exact_match
=
True
)
if
len
(
user_list
)
>
0
:
return
False
return
True
return
not
acl_users
.
searchUsers
(
login
=
login
,
exact_match
=
True
)
return
None
def
isSingleSignOnEnable
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment