Boris Gisselere Posted December 4, 2020 Share Posted December 4, 2020 Hi,I've been looking for a solution since 2 weeks, read a lot of forums and user guides but not finding any solution. Here's the thing :We were facing a problem in Jaspersoft 5.1 version and we upgrade to 6.1.2 hoping it will be solved, but no.When we activate the password change for user on login page :Modifying /WEB-INF/jasperserver-servlet.xmlallowUserPasswordChange = truePutting this pattern :/WEB-INF/applicationContext.xml allowedPasswordPattern<property name="allowedPasswordPattern" value="^(?=.{10,}$)(?=.*[a-z])(?=.*[A-Z])(?=.*d).*$"></property>And setting exception : /WEB-INF/bundles/jsexceptions_messages_fr.propertiesexception.remote.weak.passwordLe mot de passe doit avoir au moins 10 caractu00e8res et contenir au moins une minuscule, une majuscule et un chiffre. When I create a user connecter as superuser, all this work fineBut on the login page when user try to connect and change password :if new password and confirmed new password are different, there's a message corresponding to jsp.Login.link.passwordNotMatch in jasperserver_messages_fr.propertiesif new password doesn't match the REGEXP : nothing happens on login page and the user is logged in with old passwordif new password is matching REGEXP : nothing happens on login page and the user is logged in with old password in all cases, user password is never changedMay someone have some clue to solve this please ?Note : I did change security-config.properties to set encryption.on=true but nothing changesEDIT after one more day looking all sources to find some clue :in this file : .../WEB-INF/jsp/modules/login/loginState.jspI found this : showLocaleMessage: '<spring:message code="jsp.Login.link.showLocale" javaScriptEscape="true"/>', hideLocaleMessage: '<spring:message code="jsp.Login.link.hideLocale" javaScriptEscape="true"/>', allowUserPasswordChange: ${allowUserPasswordChange}, changePasswordMessage: '<spring:message code="jsp.Login.link.changePassword" javaScriptEscape="true"/>', cancelPasswordMessage: '<spring:message code="jsp.Login.link.cancelPassword" javaScriptEscape="true"/>', passwordExpirationInDays: ${passwordExpirationInDays}, nonEmptyPasswordMessage: '<spring:message code="jsp.Login.link.nonEmptyPassword" javaScriptEscape="true"/>', passwordNotMatchMessage: '<spring:message code="jsp.Login.link.passwordNotMatch" javaScriptEscape="true"/>', Sadly I can't see anything making me think that there's a pattern control here !Some one knows if there's a control and where ?I did upload a document with the 2 pages, In administration page, the control did work, but in login page, nothing happens .. Someone can help me ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now