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
9472620d
Commit
9472620d
authored
Jan 12, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
authentication policy: test passord reset through password tool
parent
71ba36ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
product/ERP5/tests/testAuthenticationPolicy.py
product/ERP5/tests/testAuthenticationPolicy.py
+4
-0
No files found.
product/ERP5/tests/testAuthenticationPolicy.py
View file @
9472620d
...
@@ -741,6 +741,10 @@ class TestAuthenticationPolicy(ERP5TypeTestCase):
...
@@ -741,6 +741,10 @@ class TestAuthenticationPolicy(ERP5TypeTestCase):
default_destination_uid
=
login
.
getUid
(),
default_destination_uid
=
login
.
getUid
(),
validation_state
=
"expired"
)))
validation_state
=
"expired"
)))
# Here we activate the "password should contain usename" policy
# as a way to check that password reset checks are done in the
# context of the login
def
test_PreferenceTool_changePassword_checks_policy
(
self
):
def
test_PreferenceTool_changePassword_checks_policy
(
self
):
person
=
self
.
createUser
(
self
.
id
(),
password
=
'current'
)
person
=
self
.
createUser
(
self
.
id
(),
password
=
'current'
)
login
=
person
.
objectValues
(
portal_type
=
'ERP5 Login'
)[
0
]
login
=
person
.
objectValues
(
portal_type
=
'ERP5 Login'
)[
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