http://onionworks.net/2006/data/personalization

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="http://www.w3.org/1999/XSL/Transform" xmlns:user="http://onionworks.net/2006/data/personalization" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
<xsl:if test="user:login('testuser', 'test')">
<xsl:choose>
<xsl:when test="user:updatePassword('password')"> The password was changed successfuly. </xsl:when>
<xsl:otherwise>The password could not be changed.</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Updating the password