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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
e9cb65e7
Commit
e9cb65e7
authored
Feb 10, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EncryptedPasswordMixin: py3
parent
e3ca3698
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.EncryptedPasswordMixin.py
...em/portal_components/mixin.erp5.EncryptedPasswordMixin.py
+2
-2
No files found.
bt5/erp5_base/MixinTemplateItem/portal_components/mixin.erp5.EncryptedPasswordMixin.py
View file @
e9cb65e7
...
...
@@ -82,6 +82,8 @@ class EncryptedPasswordMixin(object):
value
,
format
=
'default'
,
# pylint: disable=redefined-builtin
):
if
value
is
not
None
and
not
isinstance
(
value
,
bytes
):
value
=
value
.
encode
()
password
=
getattr
(
aq_base
(
self
),
'password'
,
None
)
if
password
is
None
or
isinstance
(
password
,
basestring
):
password
=
self
.
password
=
PersistentMapping
()
...
...
@@ -111,8 +113,6 @@ class EncryptedPasswordMixin(object):
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getPassword'
)
def
getPassword
(
self
,
*
args
,
**
kw
):
"""
"""
marker
=
[]
if
len
(
args
):
default_password
=
args
[
0
]
...
...
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