Book Image

ADempiere 3.6 Cookbook

Book Image

ADempiere 3.6 Cookbook

Overview of this book

Table of Contents (16 chapters)
ADempiere 3.6 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Equifax password change service


Equifax security forces its users to change their passwords every month. If that is the case, then as part of your application logic, you need to ensure that you keep track of this date and change the password, as per the expectation of Equifax. This recipe talks about the password change service of Session Service to change a user password.

Getting ready

Note down your current password.

How to do it...

  1. 1. Create the change_password_request XML using the old password and the new password.

    String xml = "<?xml version=\"1.0\" standalone=\"yes\"?>"
    + "<request>"
    + "<request_header session_token=\"22c06cf0-cfb4-11df-87da-0a884fe6aa77-76\" interface_version_no= \"1.0\" dtd_version_no=\"1.0\">"
    + "<client_reference>XXXX</client_reference>"
    + "</request_header>"
    + "<service_request id=\"1\">"
    + "<session_service>"
    + "<change_password_request domain_id=\"XXXX\" user_id=\"XXXX\" current_password=\"XXXX\" new_password=...