Web Script: org/alfresco/components/profile/change-password.get
Generated from /share/service/script/org/alfresco/components/profile/change-password.get on Jun 13, 2026 9:39:10 PM

Script Properties
Id:org/alfresco/components/profile/change-password.get
Short Name:Change Password
Description:Change user password
Authentication:none
Transaction:none
Method:GET
URL Template:/components/profile/change-password
Format Style:any
Default Format:html
Negotiated Formats:[undefined]
Implementation:class org.alfresco.web.scripts.DeclarativeWebScript
Extensions:[undefined]

Store: classpath:alfresco/site-webscripts

File: org/alfresco/components/profile/change-password.get.desc.xml
<webscript>
  <shortname>Change Password</shortname>
  <description>Change user password</description>
  <url>/components/profile/change-password</url>
</webscript>
File: org/alfresco/components/profile/change-password.get.head.ftl
<!-- Change Password Assets -->
<link rel="stylesheet" type="text/css" href="${page.url.context}/components/profile/changepassword.css" />
<script type="text/javascript" src="${page.url.context}/components/profile/changepassword.js"></script>
<!-- Simple Dialog Assets -->
<script type="text/javascript" src="${page.url.context}/modules/simple-dialog.js"></script>
File: org/alfresco/components/profile/change-password.get.html.ftl
<script type="text/javascript">//<![CDATA[
   var userProfile = new Alfresco.ChangePassword("${args.htmlid}").setMessages(
      ${messages}
   );
//]]></script>

<div id="${args.htmlid}-body" class="password">
   <form id="${htmlid}-form" action="${url.context}/service/components/profile/change-password" method="post">
   
      <div class="header-bar">${msg("label.changepassword")}</div>
      <div class="row">
         <span class="label"><label for="${args.htmlid}-oldpassword">${msg("label.oldpassword")}:</label></span>
         <span class="input"><input type="password" maxlength="256" size="30" id="${args.htmlid}-oldpassword" /></span>
      </div>
      <div class="row">
         <span class="label"><label for="${args.htmlid}-newpassword1">${msg("label.newpassword")}:</label></span>
         <span class="input"><input type="password" maxlength="256" size="30" id="${args.htmlid}-newpassword1" /></span>
      </div>
      <div class="row">
         <span class="label"><label for="${args.htmlid}-newpassword2">${msg("label.confirmpassword")}:</label></span>
         <span class="input"><input type="password" maxlength="256" size="30" id="${args.htmlid}-newpassword2" /></span>
      </div>
      
      <hr/>
      
      <div class="buttons">
         <button id="${args.htmlid}-button-ok" name="save">${msg("button.ok")}</button>
         <button id="${args.htmlid}-button-cancel" name="cancel">${msg("button.cancel")}</button>
      </div>
   
   </form>

</div>
File: org/alfresco/components/profile/change-password.get.properties
label.changepassword=Change Password
label.oldpassword= Enter Old Password
label.newpassword=Enter New Password
label.confirmpassword=Confirm New Password

message.failure=Failed to change password.
message.success=Successfully changed password.

Store: classpath:alfresco/webscripts

[No implementation files]