changePassword( onsuccess, onerror ) method

This method will launch the UI screen for application users to manage and update the back-end passcode that Logon stores in the data vault that is used to authenticate the client to the server.

Syntax

<static> changePassword( onsuccess, onerror )

Parameters

Name Type Description
onsuccess sap.Logon~successCallbackNoParameters The callback to call if the screen flow succeeds.onsuccess will be called without parameters for this method.
onerror sap.Logon~errorCallback The function that is invoked in case of an error.

Example

var errorCallback = function(errorInfo){
    alert("Error: " + JSON.stringify(errorInfo));
}
var successCallback = function(context){
    alert("Password successfully changed.");
}
sap.Logon.changePassword(successCallback,errorCallback);

Source

LogonController.js, line 1708.