Branch: refs/heads/XWIKI-17510
Home: https://github.com/xwiki/xwiki-platform
Commit: 085d88ee20ee237cf50cc9c3b2208a741d15561d
https://github.com/xwiki/xwiki-platform/commit/085d88ee20ee237cf50cc9c3b220…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2023-11-06 (Mon, 06 Nov 2023)
Changed paths:
M xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-ui/src/main/resources/XWiki/Registration.xml
M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/RegisterAction.java
A xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-api/src/main/java/org/xwiki/security/authentication/RegistrationConfiguration.java
A xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-default/src/main/java/org/xwiki/security/authentication/internal/DefaultRegistrationConfiguration.java
A xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-default/src/main/java/org/xwiki/security/authentication/internal/RegistrationConfigurationSource.java
M xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-default/src/main/resources/META-INF/components.txt
A xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-script/src/main/java/org/xwiki/security/authentication/script/RegistrationScriptService.java
M xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-script/src/main/resources/META-INF/components.txt
M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/passwd.vm
M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/register_macros.vm
M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/resetpasswordinline.vm
Log Message:
-----------
XWIKI-17510: The reset password functionality is not affected by password strength rules
* Provide new APIs for accessing RegistrationConfiguration
* Define a script service to access this API from scripts
* Rewrite velocity macro #loadConfig to exploit this new API and to
remove unused arguments
* Use the new API also in oldcore where needed
WIP: Coverage is not yet met. And missing execution of integration tests
to validate everything. Also some properties from RegistrationConfig
have not been exposed yet. This probably need to be also done.
Commit: d6c72a3637c20d11e6175ca094d77b07c8a82207
https://github.com/xwiki/xwiki-platform/commit/d6c72a3637c20d11e6175ca094d7…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2023-11-06 (Mon, 06 Nov 2023)
Changed paths:
M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java
M xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-api/src/main/java/org/xwiki/security/authentication/RegistrationConfiguration.java
M xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-api/src/main/java/org/xwiki/security/authentication/ResetPasswordManager.java
M xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-default/src/main/java/org/xwiki/security/authentication/internal/DefaultResetPasswordManager.java
M xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-default/src/main/java/org/xwiki/security/authentication/internal/RegistrationConfigurationSource.java
A xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-default/src/test/java/org/xwiki/security/authentication/internal/DefaultRegistrationConfigurationTest.java
M xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-default/src/test/java/org/xwiki/security/authentication/internal/DefaultResetPasswordManagerTest.java
M xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-script/src/main/java/org/xwiki/security/authentication/script/RegistrationScriptService.java
A xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-script/src/test/java/org/xwiki/security/authentication/script/RegistrationScriptServiceTest.java
M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/passwd.vm
M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/register_macros.vm
M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/resetpasswordinline.vm
Log Message:
-----------
XWIKI-17510: The reset password functionality is not affected by password strength rules
* Provide new API in ResetPasswordManager to allow ensuring a password
is compliant with the registration rules on backend
* Check that the password is ok when creating a new user
* Fix bugs and perform improvments on templates
Commit: 242eb82d56c6e8be62a699626651abdc7f16a386
https://github.com/xwiki/xwiki-platform/commit/242eb82d56c6e8be62a699626651…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2023-11-06 (Mon, 06 Nov 2023)
Changed paths:
M xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-ui/src/main/resources/XWiki/Registration.xml
M xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java
M xwiki-platform-core/xwiki-platform-security/xwiki-platform-security-authentication/xwiki-platform-security-authentication-default/src/main/resources/ApplicationResources.properties
M xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/registerinline.vm
Log Message:
-----------
XWIKI-17510: The reset password functionality is not affected by password strength rules
* Add better translation message whenever a rule is not respected
Compare: https://github.com/xwiki/xwiki-platform/compare/fc442b74bfaa...242eb82d56c6