An error occurred fetching the project authors.
- 21 Aug, 2023 2 commits
-
-
Kazuhiko Shiozaki authored
-
Kazuhiko Shiozaki authored
-
- 16 Jun, 2023 1 commit
-
-
Jérome Perrin authored
to indicate success or failure Also add a code comment about the changes from e50e45e4 (erp5_core: Password Tool should not leak info on users, 2020-12-30), because while looking at this code it seems there was a mistake here.
-
- 19 Dec, 2022 1 commit
-
-
Jérome Perrin authored
The add-hoc assertin filter: -- from typing import List import lib2to3 from lib2to3.fixer_base import BaseFix from lib2to3.fixer_util import Comma, Name class FixAssertIn(BaseFix): PATTERN = """ power< any+ trailer< '.' meth=("assertTrue" | "assertFalse")> trailer< '(' comparison< (needle=any ( comp_op<'not' 'in'> | 'in' ) haystack=any) > ')' > > """ def transform(self, node: lib2to3.pytree.Node, results: List[lib2to3.pytree.Base]): needle = results['needle'] haystack = results['haystack'] meth = results["meth"][0] method_map = {True: 'assertIn', False: 'assertNotIn'} method_in = meth.value == 'assertTrue' if 'not' in str(needle.parent.children[1]): method_in = not method_in meth.replace(Name(method_map[method_in], prefix=meth.prefix)) needle.parent.children = [needle, Comma(), haystack]
-
- 25 Mar, 2021 1 commit
-
-
Jérome Perrin authored
7a9d47adff (authentication_policy: fix display of password expiration date, 2021-03-25) was wrong, the date was not properly substituted in the message.
-
- 14 Jan, 2021 1 commit
-
-
Jérome Perrin authored
This simplify code and also bring the functionnality of c484f8aa (erp5_xhtml_style Base_cancel and logged_in: do not allow redirection outside ERP5 site., 2016-02-12) for the cases where authentication_policy is installed. This also fixes a problem with translations of "Your password will expire at {date}", which was using different messages for every possible date. Tests needed to be updated because we now redirect with properly URL encoded parameters.
-
- 06 Jan, 2021 1 commit
-
-
Jérome Perrin authored
When new password does not match policy, in reset password and change password dialogs, we used u' '.join([str(message) ...]) to join all translated messages in a string, but this construct will decode the str(message) to unicode using ascii, so it will fail when these messages contain some multi bytes characters. Extend test coverage to check that these dialogs uses translations and use non ascii messages in the tests, to make sure we don't have regressions with this issue.
-
- 05 Sep, 2020 1 commit
-
-
Arnaud Fontaine authored
-
- 20 Jul, 2020 1 commit
-
-
Xiaowu Zhang authored
-
- 15 Jul, 2020 1 commit
-
-
Xiaowu Zhang authored
-
- 13 Apr, 2020 1 commit
-
-
Jérome Perrin authored
This is a dependency of erp5_credential, it should be installed in the test. This fixes a test failure, portal_notification.sendNotification(store_as_event=True) is now an error when erp5_crm is not installed.
-
- 06 Apr, 2020 2 commits
-
-
Jérome Perrin authored
Credential Recovery are supposed to be related to persons, not logins. Extend the tests to make sure that after the credential recovery is accepted a reset password email is sent and fix authentication_policy scripts to create a Credential Recovery related to the person.
-
Jérome Perrin authored
This may hide problems with code still expecting that person's reference is same as login. I did not find such problematic code, but I thought that it would be better anyway.
-
- 20 Jan, 2020 1 commit
-
-
Vincent Pelletier authored
__ac_name & __ac_password are only useful to get a cookie, so only use them when the test is actually expecting a cookie.
-
- 15 Nov, 2019 1 commit
-
-
Jérome Perrin authored
When we use preference.edit(preferred_something=something_else) the cache was cleared, because there is an interaction on _edit, but when we do preference.setPreferredSomething(something_else) cache was not cleared. This still have a problem cache is cleared too much but at least it eliminates this incorrect behavior. Update tests at the same time: - testEditorField,testAuthenticationPolicy: no need to clear cache, it's now done automatically. - testUpgrader: the workflow chain of preference changed. This test is asserting the actual workflow chain, so we have to update the test everytime workflow chain is modified.
-
- 16 Sep, 2019 1 commit
-
-
Romain Courteaud authored
See nexedi/erp5@28774376
-
- 19 Jan, 2017 4 commits
-
-
Jérome Perrin authored
Login_isPasswordValid is no longer used.
-
Jérome Perrin authored
When reseting password through portal_password, we should check new password comply with policy. Because user is not logged in at this stage, we expose a new method `PasswordTool.analyzePassword` that checks the password is valid for this reset key.
-
Jérome Perrin authored
-
Jérome Perrin authored
This is a change in the API, previously only "messages id" were returned. To make it easier to reuse analyzePassword in other contexts, we now return the message directly.
-
- 10 Jan, 2017 2 commits
-
-
Jérome Perrin authored
-
Jérome Perrin authored
Tests should not depend on the state left by the previous test run. This was achieved by: * use a different preference in each method to reset the state of preferences configuration. * clear cache after setting preferences, so that the new preference setting is used * change password after setting the max preferred password lifetime duration, otherwise password event are not created and password is not detected as expired. * rename test methods not to include number, we should not force test ordering, since we want tests to be independant. * Also add one case of password actually expired
-
- 23 Dec, 2016 2 commits
-
-
Kazuhiko Shiozaki authored
-
Vincent Pelletier authored
-
- 10 Mar, 2015 1 commit
-
-
Gabriel Monnerat authored
-
- 16 Oct, 2014 1 commit
-
-
Julien Muchembled authored
-
- 04 Sep, 2014 1 commit
-
-
Gabriel Monnerat authored
-
- 12 Sep, 2013 1 commit
-
-
Kazuhiko Shiozaki authored
-
- 15 May, 2012 1 commit
-
-
Julien Muchembled authored
This is a followup to commit 8995b645 ("always start transactions with begin() and make tic() commit automatically"): there is now no need to use self.stepTic() instead of self.tic()
-
- 11 May, 2012 1 commit
-
-
Julien Muchembled authored
-
- 03 May, 2012 1 commit
-
-
Sebastien Robin authored
-
- 16 Mar, 2012 1 commit
-
-
Ivan Tyagov authored
-
- 09 Sep, 2011 1 commit
-
-
Ivan Tyagov authored
-
- 15 Aug, 2011 1 commit
-
-
Ivan Tyagov authored
API. Adjust test accordingly.
-
- 28 Jul, 2011 1 commit
-
-
Ivan Tyagov authored
-
- 27 Jul, 2011 1 commit
-
-
Ivan Tyagov authored
Allow low level password validity checks (if isAuthenticationPolicyEnabled only). Adjust tests to handle better password history.
-
- 25 Jul, 2011 1 commit
-
-
Ivan Tyagov authored
Adjust test accordingly.
-
- 21 Jul, 2011 1 commit
-
-
Ivan Tyagov authored
saved. Add comment.
-
- 18 Jul, 2011 2 commits
-
-
Ivan Tyagov authored
-
Ivan Tyagov authored
-