Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.authentication.methods / PersonalPasswordMethod / updatePassword

updatePassword

@JvmOverloads fun updatePassword(current: String, new: String, callback: WebcomDoneCallback? = null): Unit

Updates the personal password of the currently authenticated user. This operation is asynchronous and calls the given callback once performed.

The current password must be provided in addition to the new one. If the user has forgotten her·his personal password, the sendPasswordResetCode method can be used to set a new one from scratch.

This sensitive operation fails if no user is currently authenticated or if the user has not been authenticated using the PersonalPasswordMethod on the same identifier or has been authenticated for a too long time (in this case, her·his authentication needs to be refreshed by authenticating again).