标题:[求助]我怎么在这个登陆代码中加个MD5
只看楼主
d8b1
Rank: 1
等 级:新手上路
帖 子:44
专家分:0
注 册:2006-1-3
得分:0 
我不知道怎么发啊!发的时候很整齐的!
不知道怎么到上面就这样了我还点了那个 插入代码的 按钮

主要的应该是这段:

&"' AND Admin_pass='" & Replace(Request.Form("Admin_pass"),"'","''") & "'"

你见过20元就能购买的全功能虚拟主机吗?袖珍30MB虚拟主机河南电信机房。地址:www.
2006-01-03 11:56
d8b1
Rank: 1
等 级:新手上路
帖 子:44
专家分:0
注 册:2006-1-3
得分:0 
我当然引用 MD5了

但是怎么加上呢

你见过20元就能购买的全功能虚拟主机吗?袖珍30MB虚拟主机河南电信机房。地址:www.
2006-01-03 13:56
d8b1
Rank: 1
等 级:新手上路
帖 子:44
专家分:0
注 册:2006-1-3
得分:0 
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString
MM_valUsername=CStr(Request.Form("UserId"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization="Grade"
MM_redirectLoginSuccess="MoreUserOK.asp"
MM_redirectLoginFailed="MoreUserError.asp"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_conn_STRING
MM_rsUser.Source = "SELECT UserId, PassWd"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM Agent_User WHERE UserId='" & Replace(MM_valUsername,"'","''") &"' AND PassWd='" & Replace(Request.Form("PassWd"),"'","''") & "'"
MM_rsUser.CursorType = 0
MM_rsUser.CursorLocation = 2
MM_rsUser.LockType = 3
MM_rsUser.Open
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And false Then
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If

你见过20元就能购买的全功能虚拟主机吗?袖珍30MB虚拟主机河南电信机房。地址:www.
2006-01-03 14:04
阳光白雪
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:39
帖 子:2220
专家分:0
注 册:2005-11-18
得分:0 
&amp;"' AND Admin_pass='" &amp; md5(Replace(Request.Form("Admin_pass"),"'","''")) &amp; "'"

专注于WEB前端交互平台开发:[url=http://blog./]blog.[/url](富客户端技术(RIA)交流平台)
2006-01-03 14:18
d8b1
Rank: 1
等 级:新手上路
帖 子:44
专家分:0
注 册:2006-1-3
得分:0 

这样可以吗 我试试
谢谢


你见过20元就能购买的全功能虚拟主机吗?袖珍30MB虚拟主机河南电信机房。地址:www.
2006-01-03 14:31



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-41404-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016247 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved