This project provides basic reset password functionality.
The code of this project is on GitHub at https://github.com/bloomreach-forge/reset-password/.
In the main pom.xml
of the project, in the repositories
section, add this repository if it is not configured there yet.
<repository> <id>bloomreach-forge</id> <name>Bloomreach Forge Maven 2 repository.</name> <url>https://maven.bloomreach.com/repository/maven2-forge/</url> </repository>
In the Essentials pom.xml
of the project, add following dependency.
<dependency> <groupId>org.bloomreach.forge.resetpassword</groupId> <artifactId>reset-password-essentials</artifactId> <version>7.0.0</version> </dependency>
In the main pom.xml
of the project, in the properties section, add this property.
For the correct version number, check the Release Notes.
<bloomreach.forge.resetpassword.version>version.number</bloomreach.forge.resetpassword.version>
Add the following dependencies to the cms/pom.xml:
<dependency> <groupId>org.bloomreach.forge.resetpassword</groupId> <artifactId>resetpassword-cms</artifactId> <version>${bloomreach.forge.resetpassword.version}</version> </dependency>
<dependency> <groupId>org.bloomreach.forge.resetpassword</groupId> <artifactId>resetpassword-bootstrap-configuration</artifactId> <version>${bloomreach.forge.resetpassword.version}</version> </dependency>
<dependency> <groupId>org.bloomreach.forge.resetpassword</groupId> <artifactId>resetpassword-bootstrap-content</artifactId> <version>${bloomreach.forge.resetpassword.version}</version> </dependency>
org.onehippo.forge
Additionally you need to add the following filter and filter-mapping to the CMS' web.xml:
<filter> <filter-name>ResetPassword</filter-name> <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> <init-param> <param-name>applicationClassName</param-name> <param-value>org.onehippo.forge.resetpassword.frontend.ResetPasswordMain</param-value> </init-param> <init-param> <param-name>config</param-name> <param-value>resetpassword</param-value> </init-param> <init-param> <param-name>wicket.configuration</param-name> <param-value>deployment</param-value> </init-param> <init-param> <param-name>repository-address</param-name> <param-value>vm://</param-value> </init-param> </filter> <filter-mapping> <filter-name>ResetPassword</filter-name> <url-pattern>/resetpassword/*</url-pattern> </filter-mapping>
after: [hippo-cms, bloomreach-forge]
in the hcm-module.yaml file of the repository-data application module.