updatePassword (newPassword : string) : boolean

The password of the current user can be set with the method “updatePassword”. The mandatory parameter “password” specifies the new password to be set.

If the password change has not taken place, then the value “false” is returned, otherwise the value “true”.

<xsl:stylesheet xmlns:xsl="" xmlns:user="" xmlns:onion="" version="1.0">
<xsl:template match="/">
<xsl:if test="user:login('testuser', 'test')">
<xsl:when test="user:updatePassword('password')"> The password was changed successfuly. </xsl:when>
<xsl:otherwise>The password could not be changed.</xsl:otherwise>
Updating the password