You need to sign in to do that
Don't have an account?
Amol Dixit
Implement Custom ChangePassword Functionality.
Hi,
I want to implement change password functionality on my page, for that purpose I have created one component. (Same code like standard changepassword page) But when I am trying to change password the error Message appears "The system is unable to change your password.".
component is:
<apex:component controller="ChangePasswordController"> <center> <apex:panelGrid bgcolor="white" columns="1"> <br/> <br/> <apex:panelGrid width="758" cellpadding="0" cellspacing="0" bgcolor="white" columns="1" styleClass="topPanelContainer"> <br/> <apex:outputPanel layout="block" styleClass="topPanel"> <apex:panelGrid width="758" cellpadding="0" cellspacing="0" bgcolor="white" columns="2"> <apex:image url="{!URLFOR($Resource.SiteSamples, 'img/clock.png')}"/> <apex:panelGroup > <br/> <apex:outputText styleClass="title" value="{!$Label.site.change_your_password}"/> <br/> <apex:form id="theForm"> <apex:panelGrid columns="2" style="margin-top:1em;"> <apex:outputLabel rendered="{! !$Site.IsPasswordExpired}" value="{!$Label.site.old_password}" for="oldpsw"/> <apex:inputSecret required="true" id="oldpsw" rendered="{! !$Site.IsPasswordExpired}" value="{!oldPassword}"/> <apex:outputLabel value="{!$Label.site.new_password}" for="psw"/> <apex:inputSecret required="true" id="psw" value="{!newPassword}"/> <apex:outputLabel value="{!$Label.site.verify_new_password}" for="vpsw"/> <apex:inputSecret required="true" id="vpsw" value="{!verifyNewPassword}"/> <apex:outputText value=""/> <apex:commandButton id="cpwbtn" action="{!changePassword}" value="{!$Label.site.change_password}"/> </apex:panelGrid> </apex:form> <br/> </apex:panelGroup> </apex:panelGrid> </apex:outputPanel> <c:SiteFooter /> </apex:panelGrid> </apex:panelGrid> </center> <br/> </apex:component>
Page is :
<apex:page id="ProfilePage" controller="UserProfileController" sidebar="false" showheader="false"> <apex:composition template="SecondaryTemplate"> <apex:define name="pageContent"> <apex:form > <div class="breadcrumbs"> <apex:commandLink id="HomeLink" value="{!$Label.Home}" action="{!navigateToHomePage}"></apex:commandLink> <apex:outputLabel value = " > " styleClass="sep-current"/> <apex:outputLabel styleClass="currentPage" value="{!$Label.Profile}"/> </div> <apex:outputPanel id="msgRenderer"> <div id="errMsg"> <apex:pageMessages /> </div> </apex:outputPanel> </apex:form> <div class="page-header">{!$Label.Profile}</div> <c:ChangePasswordComponent id="ChangePasswordComponent"/> <div style="height:30px;"> </div> </apex:define> </apex:composition> </apex:page>
Is that message coming because of security constraints or any other problem is there?
also I want to ask that can we iclude component in component?
Please help me out.
Thank you.
Warm Regards,
Amol Dixit.
r u trying to change the salesfore user password from your custom functionality?