Subversion Repositories DevTools

Rev

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

Rev 1283 Rev 3938
Line 33... Line 33...
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_auth") = "Y" Then
38
	If rsTemp.Fields("domain") <> "" Then
39
		' No need for password
39
		' No need for password
40
		Session("AdditionalParams") = "$USERNAME$,"& UserDetails ("user_name")
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
	ElseIf rsTemp.Fields("domain_auth") = "N" Then
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
		
Line 59... Line 59...
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 mendatory parameters FOUND
64
	' All mandatory parameters FOUND
65
	Call Change_Password ( UserDetails ("user_id"), 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
%>
Line 83... Line 83...
83
</head>
83
</head>
84
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
84
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
85
<!-- TIPS LAYERS -------------------------------------->
85
<!-- TIPS LAYERS -------------------------------------->
86
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
86
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
87
<!----------------------------------------------------->
87
<!----------------------------------------------------->
88
<!-- HEADER -->
88
<!-- HEADER ++++++++++++++++ -->
89
<%If objAccessControl.UserLogedIn Then%>
89
<!--#include file="_header.asp"-->
90
<div id="Layer1" style="position:absolute; left:2; top:2; width:1px; height:1px; z-index:1"><a href="#"><img src="images/i_logout.gif" width="14" height="14" border="0" alt="Logout from <%=objAccessControl.UserName%> disabled" title="Logout from <%=objAccessControl.UserName%> disabled"></a></div>
90
<!-- +++++++++++++++++++++++ -->
91
<%End If%>
-
 
92
<table width="100%" border="0" cellspacing="0" cellpadding="0">
-
 
93
  <tr> 
-
 
94
    <td><a href="index.asp"><img src="images/b_release_manager.jpg" width="467" height="50" border="0"></a></td>
-
 
95
    <td valign="bottom" align="right">&nbsp;</td>
-
 
96
  </tr>
-
 
97
  <tr> 
-
 
98
    <td align=left noWrap valign=center width=150 background="images/h_dot.gif" height="1"></td>
-
 
99
    <td background="images/h_dot.gif" height="1"></td>
-
 
100
  </tr>
-
 
101
</table>
-
 
102
<!-- BODY ---->
91
<!-- BODY ---->
103
<table width="100%" border="0" cellspacing="0" cellpadding="0">
92
<table width="100%" border="0" cellspacing="0" cellpadding="0">
104
  <tr> 
93
  <tr> 
105
    <td width="1%" background="images/bg_member_dark.gif" valign="top"> 
94
    <td width="1%" background="images/bg_member_dark.gif" valign="top"> 
106
      <!-- MEMBERS MENU ---------------------------------------------->
95
      <!-- MEMBERS MENU ---------------------------------------------->
Line 134... Line 123...
134
                  <td width="1%" nowrap class="form_group" valign="bottom">&nbsp;</td>
123
                  <td width="1%" nowrap class="form_group" valign="bottom">&nbsp;</td>
135
                  <td nowrap width="100%" align="right" class="form_step"><img src="images/h_trsp_dot.gif" width="350" height="10"></td>
124
                  <td nowrap width="100%" align="right" class="form_step"><img src="images/h_trsp_dot.gif" width="350" height="10"></td>
136
                </tr>
125
                </tr>
137
                <tr> 
126
                <tr> 
138
                  <td width="1%">&nbsp;</td>
127
                  <td width="1%">&nbsp;</td>
139
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">OLD 
128
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">OLD Password</td>
140
                    Password</td>
-
 
141
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif"> 
129
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif"> 
142
                    <input type="password" name="FRoldpassword" class="form_item">
130
                    <input type="password" name="FRoldpassword" class="form_item">
143
                  </td>
131
                  </td>
144
                </tr>
132
                </tr>
145
                <tr> 
133
                <tr> 
Line 147... Line 135...
147
                  <td width="1%" nowrap class="form_field">&nbsp;</td>
135
                  <td width="1%" nowrap class="form_field">&nbsp;</td>
148
                  <td nowrap width="100%">&nbsp;</td>
136
                  <td nowrap width="100%">&nbsp;</td>
149
                </tr>
137
                </tr>
150
                <tr> 
138
                <tr> 
151
                  <td width="1%">&nbsp;</td>
139
                  <td width="1%">&nbsp;</td>
152
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">NEW 
140
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">NEW Password</td>
153
                    Password</td>
-
 
154
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif"> 
141
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif"> 
155
                    <input type="password" name="FRpassword" class="form_item">
142
                    <input type="password" name="FRpassword" class="form_item">
156
                  </td>
143
                  </td>
157
                </tr>
144
                </tr>
158
                <tr> 
145
                <tr> 
159
                  <td width="1%">&nbsp;</td>
146
                  <td width="1%">&nbsp;</td>
160
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">NEW 
147
                  <td width="1%" nowrap class="form_field" background="images/bg_form_lightbluedark.gif">NEW Password Confirm </td>
161
                    Password Confirm </td>
-
 
162
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif"> 
148
                  <td nowrap width="100%" background="images/bg_form_lightbluedark.gif"> 
163
                    <input type="password" name="FRpasswordc" class="form_item">
149
                    <input type="password" name="FRpasswordc" class="form_item">
164
                  </td>
150
                  </td>
165
                </tr>
151
                </tr>
-
 
152
 
-
 
153
                <%If (objAccessControl.Domain <> "") Then %>
-
 
154
                  <td width="1%">&nbsp;</td>
-
 
155
                  <td width="1%" nowrap class="form_field err_alert" colspan=2>
-
 
156
                  The User Password cannot be managed from Release Manager<br>as the User is configured to use Domain Authentication</td>
-
 
157
                </tr>
-
 
158
                <% End If %>
-
 
159
 
166
                <tr> 
160
                <tr> 
167
                  <td width="1%">&nbsp;</td>
161
                  <td width="1%">&nbsp;</td>
168
                  <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
162
                  <td width="1%" nowrap class="form_field"><img src="images/h_trsp_dot.gif" width="1" height="1"></td>
169
                  <td nowrap width="100%"> 
163
                  <td nowrap width="100%"> 
170
                    <input type="hidden" name="action" value="true">
164
                    <input type="hidden" name="action" value="true">
-
 
165
                    <%If (objAccessControl.Domain <> "") Then %>
-
 
166
                        <input disabled type="submit" name="btn" value="Change" class="form_btn_disabled" >
-
 
167
                    <% Else %>
171
                    <input type="submit" name="btn" value="Change" class="form_btn" onClick="MM_validateForm('FRoldpassword','OLD Password','R','FRpassword','NEW Password','RisPackageisChangePasswordinLength6:');return document.MM_returnValue">
168
                        <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">
-
 
169
                    <% End If %>
172
                    <input type="reset" name="btn" value="Cancel" class="form_btn" onClick="history.back();">
170
                    <input type="reset" name="btn" value="Cancel" class="form_btn" onClick="history.back();">
173
                    <br>
171
                    <br>
174
                    <br>
172
                    <br>
175
                  </td>
173
                  </td>
176
                </tr>
174
                </tr>