Implemented 'Require Password Change' in ecommerce and manager apps: if the new field in the UserLogin entity is set to Y then, before the login, the user will be prompted for a new password.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@549406 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacopo Cappellato
2007-06-21 06:20:53 +00:00
parent d67eb76587
commit 4e8e2dac8e
45 changed files with 432 additions and 5 deletions
@@ -62,6 +62,7 @@ under the License.
<security https="true" auth="false"/>
<event type="java" path="org.ofbiz.webapp.control.LoginWorker" invoke="login"/>
<response name="success" type="view" value="main"/>
<response name="requirePasswordChange" type="view" value="requirePasswordChange"/>
<response name="error" type="view" value="login"/>
</request-map>
@@ -551,6 +552,7 @@ under the License.
<view-map name="error" page="/error/error.jsp"/>
<view-map name="main" type="screen" page="component://webtools/widget/CommonScreens.xml#main"/>
<view-map name="login" type="screen" page="component://webtools/widget/CommonScreens.xml#login"/>
<view-map name="requirePasswordChange" type="screen" page="component://webtools/widget/CommonScreens.xml#requirePasswordChange"/>
<view-map name="ping" type="ftl" page="/ping.ftl"/>
<view-map name="showDateTime" type="ftl" page="/showDateTime.ftl"/>
@@ -74,6 +74,19 @@ under the License.
</widgets>
</section>
</screen>
<screen name="requirePasswordChange">
<section>
<widgets>
<decorator-screen name="CommonWebtoolsDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<platform-specific>
<html><html-template location="component://common/webcommon/changePassword.ftl"/></html>
</platform-specific>
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
<screen name="printStart">
<section>
<widgets>