Subversion Repositories DevTools

Rev

Rev 3959 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3959 Rev 5357
Line 1... Line 1...
1
<%@LANGUAGE="VBSCRIPT"%>
1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
2
<%
3
'=====================================================
3
'=====================================================
4
'|                                                   |
4
'|                                                   |
5
'|				    	Change Password			     |
5
'|				    	Change Password			     |
6
'|                                      			 |
6
'|                                      			 |
7
'=====================================================
7
'=====================================================
8
%>
8
%>
9
<%
9
<%
10
Option explicit
10
Option explicit
11
' Good idea to set when using redirect
11
' Good idea to set when using redirect
12
Response.Expires = 0	' always load the page, dont store
12
Response.Expires = 0	' always load the page, dont store
13
%>
13
%>
14
<!--#include file="common/conf.asp"-->
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
16
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<!--#include file="sec/Crypt.asp"-->
19
<!--#include file="sec/Crypt.asp"-->
20
<%
20
<%
21
'------------ ACCESS CONTROL ------------------
21
'------------ ACCESS CONTROL ------------------
22
%>
22
%>
23
<!--#include file="_access_control_login.asp"-->
23
<!--#include file="_access_control_login.asp"-->
24
<!--#include file="_access_control_general.asp"-->
24
<!--#include file="_access_control_general.asp"-->
25
<%
25
<%
26
'------------ Variable Definition -------------
26
'------------ Variable Definition -------------
27
'------------ Constants Declaration -----------
27
'------------ Constants Declaration -----------
28
'------------ Variable Init -------------------
28
'------------ Variable Init -------------------
29
'----------------------------------------------
29
'----------------------------------------------
30
%>
30
%>
31
<%
31
<%
32
Sub Change_Password ( NNuser_id, SSoldpassword, SSpassword )
32
Sub Change_Password ( NNuser_id, SSoldpassword, SSpassword )
33
	Dim rsTemp, Query_String
33
	Dim rsTemp, Query_String
34
	Query_String = _
34
	Query_String = _
35
	"SELECT * FROM users WHERE user_id= "& NNuser_id
35
	"SELECT * FROM users WHERE user_id= "& NNuser_id
36
	Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
36
	Set rsTemp = OraDatabase.DbCreateDynaset( Query_String, cint(0))
37
	
37
	
38
	If rsTemp.Fields("domain") <> "" Then
38
	If rsTemp.Fields("domain") <> "" Then
39
		' No need for password
39
		' No need for password
40
		Session("AdditionalParams") = "$USERNAME$,"& objAccessControl.UserName
40
		Session("AdditionalParams") = "$USERNAME$,"& objAccessControl.UserName
41
		Response.Redirect("message.asp?msg=202-15")
41
		Response.Redirect("message.asp?msg=202-15")
42
		
42
		
43
	Else
43
	Else
44
		If EnCrypt( SSoldpassword ) <> rsTemp.Fields("user_password") Then
44
		If EnCrypt( SSoldpassword ) <> rsTemp.Fields("user_password") Then
45
			' Old Password Mismatch
45
			' Old Password Mismatch
46
			Response.Redirect("message.asp?msg=401-8")
46
			Response.Redirect("message.asp?msg=401-8")
47
		End If
47
		End If
48
		
48
		
49
	End If
49
	End If
50
	
50
	
51
	' All conditions mat. Change password
51
	' All conditions mat. Change password
52
	'update fields
52
	'update fields
53
	rsTemp.Edit
53
	rsTemp.Edit
54
	rsTemp.Fields("user_password").Value = EnCrypt( SSpassword )
54
	rsTemp.Fields("user_password").Value = EnCrypt( SSpassword )
55
	rsTemp.Update
55
	rsTemp.Update
56
	
56
	
57
	rsTemp.Close
57
	rsTemp.Close
58
	Set rsTemp = nothing
58
	Set rsTemp = nothing
59
End Sub
59
End Sub
60
%>
60
%>
61
<%
61
<%
62
'--- Process submition ---
62
'--- Process submition ---
63
If CBool(QStrPar("action")) Then
63
If CBool(QStrPar("action")) Then
64
	' All mandatory parameters FOUND
64
	' All mandatory parameters FOUND
65
	Call Change_Password ( objAccessControl.UserId, Request("FRoldpassword"), Request("FRpassword") )
65
	Call Change_Password ( objAccessControl.UserId, Request("FRoldpassword"), Request("FRpassword") )
66
	
66
	
67
	
67
	
68
	Response.Redirect("message.asp?msg=200-7")
68
	Response.Redirect("message.asp?msg=200-7")
69
End If
69
End If
70
%>
70
%>
71
<html>
71
<html>
72
<head>
72
<head>
73
<title>Release Manager</title>
73
<title>Release Manager</title>
74
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
74
<link rel="shortcut icon" href="<%=FavIcon%>"/>
75
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
75
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
76
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
76
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
77
<link rel="stylesheet" href="images/navigation.css" type="text/css">
77
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
78
<script language="JavaScript" src="images/common.js"></script>
78
<link rel="stylesheet" href="images/navigation.css" type="text/css">
79
<!-- TIPS -->
79
<script language="JavaScript" src="images/common.js"></script>
80
<script language="JavaScript" src="images/tipster.js"></script>
80
<!-- TIPS -->
81
<script language="JavaScript" src="images/_help_tips.js"></script>
81
<script language="JavaScript" src="images/tipster.js"></script>
82
</head>
82
<script language="JavaScript" src="images/_help_tips.js"></script>
83
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
83
</head>
84
<!-- TIPS LAYERS -------------------------------------->
84
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
85
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
85
<!-- TIPS LAYERS -------------------------------------->
86
<!----------------------------------------------------->
86
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
87
<!-- HEADER -->
87
<!----------------------------------------------------->
88
<!--#include file="_header.asp"-->
88
<!-- HEADER -->
89
<!-- BODY ---->
89
<!--#include file="_header.asp"-->
90
<table width="100%" border="0" cellspacing="0" cellpadding="0">
90
<!-- BODY ---->
91
  <tr> 
91
<table width="100%" border="0" cellspacing="0" cellpadding="0">
92
    <td width="1%" background="images/bg_member_dark.gif" valign="top"> 
92
  <tr> 
93
      <!-- MEMBERS MENU ---------------------------------------------->
93
    <td width="1%" background="images/bg_member_dark.gif" valign="top"> 
94
	  <!--#include file="members_menu_def.asp"-->
94
      <!-- MEMBERS MENU ---------------------------------------------->
95
	  <%Call Member_Menu( "my details" )%>
95
	  <!--#include file="members_menu_def.asp"-->
96
      <!--  MEMBERS MENU END ------------------------------------------>
96
	  <%Call Member_Menu( "my details" )%>
97
    </td>
97
      <!--  MEMBERS MENU END ------------------------------------------>
98
    <td width="1%" valign="top" background="images/bg_member_light.gif"><a href="index.asp" class="form_txt_link"><img src="images/i_home.gif" width="13" height="12" border="0" align="absmiddle">Exit</a></td>
98
    </td>
99
    <td rowspan="2" valign="top" width="1%" background="images/bg_member_light.gif" nowrap> 
99
    <td width="1%" valign="top" background="images/bg_member_light.gif"><a href="index.asp" class="form_txt_link"><img src="images/i_home.gif" width="13" height="12" border="0" align="absmiddle">Exit</a></td>
100
      <!------------------------------------------->
100
    <td rowspan="2" valign="top" width="1%" background="images/bg_member_light.gif" nowrap> 
101
      <br>
101
      <!------------------------------------------->
102
      <span class="mmb_ttl">Change Password</span><br>
102
      <br>
103
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
103
      <span class="mmb_ttl">Change Password</span><br>
104
        <form name="chpass" method="post" action="members_change_password.asp">
104
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
105
          <tr> 
105
        <form name="chpass" method="post" action="members_change_password.asp">
106
            <td width="1%">&nbsp;</td>
106
          <tr> 
107
            <td><img src="images/h_trsp_dot.gif" width="500" height="30"></td>
107
            <td width="1%">&nbsp;</td>
108
            <td width="1%">&nbsp;</td>
108
            <td><img src="images/h_trsp_dot.gif" width="500" height="30"></td>
109
          </tr>
109
            <td width="1%">&nbsp;</td>
110
          <tr> 
110
          </tr>
111
            <td align="left" valign="top" width="1%" background="images/bg_member_dark.gif"><img src="images/h_trsp_dot.gif" width="13" height="13"></td>
111
          <tr> 
112
            <td background="images/bg_member_dark.gif" align="left" class="wform_ttl">&nbsp;</td>
112
            <td align="left" valign="top" width="1%" background="images/bg_member_dark.gif"><img src="images/h_trsp_dot.gif" width="13" height="13"></td>
113
            <td align="right" valign="top" width="1%" background="images/bg_member_dark.gif">&nbsp;</td>
113
            <td background="images/bg_member_dark.gif" align="left" class="wform_ttl">&nbsp;</td>
114
          </tr>
114
            <td align="right" valign="top" width="1%" background="images/bg_member_dark.gif">&nbsp;</td>
115
          <tr> 
115
          </tr>
116
            <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
116
          <tr> 
117
            <td bgcolor="#FFFFFF" valign="top" class="form_item"> <br>
117
            <td width="1%" bgcolor="#FFFFFF"><img src="images/h_trsp_dot.gif" width="10" height="100"></td>
118
              <table width="100%" border="0" cellspacing="1" cellpadding="2">
118
            <td bgcolor="#FFFFFF" valign="top" class="form_item"> <br>
119
                <tr> 
119
              <table width="100%" border="0" cellspacing="1" cellpadding="2">
120
                  <td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
120
                <tr> 
121
                  <td width="1%" nowrap class="form_group" valign="bottom">&nbsp;</td>
121
                  <td width="1%"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
122
                  <td nowrap width="100%" align="right" class="form_step"><img src="images/h_trsp_dot.gif" width="350" height="10"></td>
122
                  <td width="1%" nowrap class="form_group" valign="bottom">&nbsp;</td>
123
                </tr>
123
                  <td nowrap width="100%" align="right" class="form_step"><img src="images/h_trsp_dot.gif" width="350" height="10"></td>
124
                <tr> 
124
                </tr>
125
                  <td width="1%">&nbsp;</td>
125
                <tr> 
126
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">OLD Password</td>
126
                  <td width="1%">&nbsp;</td>
127
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif"> 
127
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">OLD Password</td>
128
                    <input type="password" name="FRoldpassword" class="form_item">
128
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif"> 
129
                  </td>
129
                    <input type="password" name="FRoldpassword" class="form_item">
130
                </tr>
130
                  </td>
131
                <tr> 
131
                </tr>
132
                  <td width="1%">&nbsp;</td>
132
                <tr> 
133
                  <td width="1%" nowrap class="form_field">&nbsp;</td>
133
                  <td width="1%">&nbsp;</td>
134
                  <td nowrap width="100%">&nbsp;</td>
134
                  <td width="1%" nowrap class="form_field">&nbsp;</td>
135
                </tr>
135
                  <td nowrap width="100%">&nbsp;</td>
136
                <tr> 
136
                </tr>
137
                  <td width="1%">&nbsp;</td>
137
                <tr> 
138
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">NEW Password</td>
138
                  <td width="1%">&nbsp;</td>
139
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif"> 
139
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">NEW Password</td>
140
                    <input type="password" name="FRpassword" class="form_item">
140
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif"> 
141
                  </td>
141
                    <input type="password" name="FRpassword" class="form_item">
142
                </tr>
142
                  </td>
143
                <tr> 
143
                </tr>
144
                  <td width="1%">&nbsp;</td>
144
                <tr> 
145
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">NEW Password Confirm </td>
145
                  <td width="1%">&nbsp;</td>
146
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif"> 
146
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">NEW Password Confirm </td>
147
                    <input type="password" name="FRpasswordc" class="form_item">
147
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif"> 
148
                  </td>
148
                    <input type="password" name="FRpasswordc" class="form_item">
149
                </tr>
149
                  </td>
150
 
150
                </tr>
151
                <%If (objAccessControl.Domain <> "") Then %>
151
 
152
                  <td width="1%">&nbsp;</td>
152
                <%If (objAccessControl.Domain <> "") Then %>
153
                  <td width="1%" nowrap class="form_field err_alert" colspan=2>
153
                  <td width="1%">&nbsp;</td>
154
                  The User Password cannot be managed from Release Manager<br>as the User is configured to use Domain Authentication</td>
154
                  <td width="1%" nowrap class="form_field err_alert" colspan=2>
155
                </tr>
155
                  The User Password cannot be managed from Release Manager<br>as the User is configured to use Domain Authentication</td>
156
                <% End If %>
156
                </tr>
157
 
157
                <% End If %>
158
                <tr> 
158
 
159
                  <td width="1%">&nbsp;</td>
159
                <tr> 
160
                  <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
160
                  <td width="1%">&nbsp;</td>
161
                  <td nowrap width="100%"> 
161
                  <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
162
                    <input type="hidden" name="action" value="true">
162
                  <td nowrap width="100%"> 
163
                    <%If (objAccessControl.Domain <> "") Then %>
163
                    <input type="hidden" name="action" value="true">
164
                        <input disabled type="submit" name="btn" value="Change" class="form_btn_disabled" >
164
                    <%If (objAccessControl.Domain <> "") Then %>
165
                    <% Else %>
165
                        <input disabled type="submit" name="btn" value="Change" class="form_btn_disabled" >
166
                        <input type="submit" name="btn" value="Change" class="form_btn" onClick="MM_validateForm('FRoldpassword','OLD Password','RisCleanStr','FRpassword','NEW Password','RisCleanStrisChangePasswordinLength6:');return document.MM_returnValue">
166
                    <% Else %>
167
                    <% End If %>
167
                        <input type="submit" name="btn" value="Change" class="form_btn" onClick="MM_validateForm('FRoldpassword','OLD Password','RisCleanStr','FRpassword','NEW Password','RisCleanStrisChangePasswordinLength6:');return document.MM_returnValue">
168
                    <input type="reset" name="btn" value="Cancel" class="form_btn" onClick="history.back();">
168
                    <% End If %>
169
                    <br>
169
                    <input type="reset" name="btn" value="Cancel" class="form_btn" onClick="history.back();">
170
                    <br>
170
                    <br>
171
                  </td>
171
                    <br>
172
                </tr>
172
                  </td>
173
              </table>
173
                </tr>
174
              <br>
174
              </table>
175
              <br>
175
              <br>
176
            </td>
176
              <br>
177
            <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
177
            </td>
178
          </tr>
178
            <td width="1%" background="images/lbox_bgside_white.gif">&nbsp;</td>
179
          <tr> 
179
          </tr>
180
            <td width="1%" background="images/bg_member_dark.gif" valign="bottom"><img src="images/h_trsp_dot.gif" width="13" height="13"></td>
180
          <tr> 
181
            <td background="images/bg_member_dark.gif"></td>
181
            <td width="1%" background="images/bg_member_dark.gif" valign="bottom"><img src="images/h_trsp_dot.gif" width="13" height="13"></td>
182
            <td width="1%" background="images/bg_member_dark.gif" valign="bottom" align="right"><img src="images/h_trsp_dot.gif" width="13" height="13"></td>
182
            <td background="images/bg_member_dark.gif"></td>
183
          </tr>
183
            <td width="1%" background="images/bg_member_dark.gif" valign="bottom" align="right"><img src="images/h_trsp_dot.gif" width="13" height="13"></td>
184
        </form>
184
          </tr>
185
      </table>
185
        </form>
186
      <!-------------------------------------------------------->
186
      </table>
187
      <br>
187
      <!-------------------------------------------------------->
188
    </td>
188
      <br>
189
    <td rowspan="2" valign="bottom" width="100%" background="images/bg_member_light.gif" align="right"><img src="images/bg_img_member.gif" width="160" height="230" vspace="10" hspace="10"></td>
189
    </td>
190
  </tr>
190
    <td rowspan="2" valign="bottom" width="100%" background="images/bg_member_light.gif" align="right"><img src="images/bg_img_member.gif" width="160" height="230" vspace="10" hspace="10"></td>
191
  <tr> 
191
  </tr>
192
    <td valign="bottom" align="center" background="images/bg_member_dark.gif"><img src="images/img_members.gif" width="81" height="57" vspace="20" hspace="30"></td>
192
  <tr> 
193
    <td background="images/bg_member_light.gif" valign="top"><img src="images/h_trsp_dot.gif" width="100" height="400"></td>
193
    <td valign="bottom" align="center" background="images/bg_member_dark.gif"><img src="images/img_members.gif" width="81" height="57" vspace="20" hspace="30"></td>
194
  </tr>
194
    <td background="images/bg_member_light.gif" valign="top"><img src="images/h_trsp_dot.gif" width="100" height="400"></td>
195
</table>
195
  </tr>
196
<!-- FOOTER -->
196
</table>
197
<!--#include file="_footer.asp"-->
197
<!-- FOOTER -->
198
</body>
198
<!--#include file="_footer.asp"-->
199
</html>
199
</body>
200
<%
200
</html>
201
Call Destroy_All_Objects
201
<%
-
 
202
Call Destroy_All_Objects
202
%>
203
%>
203
204