| <?xml version="1.0" encoding="UTF-8" ?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| |
| <simple-map-processors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods-v2.xsd"> |
| |
| <simple-map-processor name="updatePassword"> |
| <process field="currentPassword"><copy/><not-empty><fail-property resource="SecurityextUiLabels" property="loginmapprocs.old_password_missing"/></not-empty></process> |
| <process field="newPassword"><copy/><not-empty><fail-property resource="SecurityextUiLabels" property="loginmapprocs.new_password_missing"/></not-empty></process> |
| <process field="newPasswordVerify"> |
| <compare-field operator="equals" field="newPassword"><fail-property resource="SecurityextUiLabels" property="loginmapprocs.password_not_equal_verfiy_password"/></compare-field> |
| <not-empty><fail-property resource="SecurityextUiLabels" property="loginmapprocs.new_password_verify_missing"/></not-empty> |
| <copy/></process> |
| <process field="passwordHint"><copy/></process> |
| <process field="userLoginId"><copy/></process> |
| </simple-map-processor> |
| |
| <simple-map-processor name="adminUpdatePassword"> |
| <process field="newPassword"><copy/><not-empty><fail-property resource="SecurityextUiLabels" property="loginmapprocs.new_password_missing"/></not-empty></process> |
| <process field="newPasswordVerify"> |
| <compare-field operator="equals" field="newPassword"><fail-property resource="SecurityextUiLabels" property="loginmapprocs.password_not_equal_verfiy_password"/></compare-field> |
| <not-empty><fail-property resource="SecurityextUiLabels" property="loginmapprocs.new_password_verify_missing"/></not-empty> |
| <copy/></process> |
| <process field="passwordHint"><copy/></process> |
| <process field="userLoginId"><copy/></process> |
| </simple-map-processor> |
| |
| <simple-map-processor name="userLogin"> |
| <process field="partyId"><copy/></process> |
| <process field="username"> |
| <copy to-field="userLoginId"/><not-empty><fail-property resource="PartyUiLabels" property="PartyUserNameMissing"/></not-empty> |
| </process> |
| <process field="password"> |
| <copy to-field="currentPassword"/><not-empty><fail-property resource="PartyUiLabels" property="PartyPasswordMissing"/></not-empty> |
| </process> |
| <process field="passwordVerify"> |
| <compare-field operator="equals" field="password"><fail-property resource="PartyUiLabels" property="PartyPasswordMatchError"/></compare-field> |
| <copy to-field="currentPasswordVerify"/> |
| </process> |
| <process field="passwordHint"><copy/></process> |
| </simple-map-processor> |
| </simple-map-processors> |