如果您的网站希望,会员可以通过手机号登录,那么可以按如下方法修改:
用DW等编辑工具打开user/checkuserlogin.asp
找到
- If InStr(UserName,"@")<>0 Then Param=Param & " and Email='"& UserName & "'" ElseIf Len(UserName)<10 and IsNumerIc(UserName) Then Param=Param & " and (UserId=" & KS.ChkClng(UserName) & " or username='" & UserName &"')" Else Param=Param & " and UserName='" &UserName & "'" End If
改为
- If InStr(UserName,"@")<>0 Then Param=Param & " and Email='"& UserName & "'" ElseIf Len(UserName)<10 and IsNumerIc(UserName) Then Param=Param & " and (UserId=" & KS.ChkClng(UserName) & " or username='" & UserName &"')" ElseIf Len(UserName)=11 and left(username,2)="13" Then
Param=Param & " and Mobile='"& UserName & "'"
Else Param=Param & " and UserName='" &UserName & "'" End If
增加红色的代码即可。