-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchangePassword.vf
41 lines (41 loc) · 2.37 KB
/
changePassword.vf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<apex:page id="changePassword" showHeader="false" controller="ChangePasswordController" title="{!$Label.site.change_password}">
<apex:composition template="{!$Site.Template}">
<apex:define name="body">
<center>
<apex:panelGrid bgcolor="white" columns="1" style="align: center;">
<br/>
<br/>
<apex:panelGrid width="758" cellpadding="0" cellspacing="0" bgcolor="white" columns="1" style="border:1px solid #ccc;">
<br/>
<apex:outputPanel layout="block" style="background-color: white; border: 1px solid #ccc; padding: 0px; margin-top: 10px; margin-bottom: 0px; margin-left: 10px; margin-right: 10px;">
<apex:panelGrid width="758" cellpadding="0" cellspacing="0" bgcolor="white" columns="2">
<apex:image url="{!$Site.Prefix}{!$Label.site.img_path}/clock.png"/>
<apex:panelGroup >
<br/>
<apex:outputText style="font-size: larger; font-weight: bold;" value="{!$Label.site.change_your_password}"/>
<br/>
<apex:form id="theForm">
<apex:pageMessages id="error"/>
<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:define>
</apex:composition>
</apex:page>