N point host management system reset password method of online password change

  • 2020-05-14 05:34:51
  • OfStack

1, remote to the server, open N program directory, such as C:\Program Files\NpointSoft\ npointhost1.9.6 \web. Open the admin directory again and manually create a new file, such as reset.asp. The program contents are as follows:


<!--#include file="../inc/conn.asp" -->
<!--#include file="../inc/npoint.asp" -->
<%
Dim newpass,newpass2
newpass = "www.ofstack.com"
newpass2 = newpass
sql = "Update adminlogo Set pass='" & npoint(newpass) & "' Where name='admin'"
Rs.Open sql,conn,1,3
if conn.Errors.Count > 0 Then
 Response.Write " Reset password failed, please contact the administrator! "
Else
 Response.Write " The administrator password has been reset to "& newpass2 &" , please be sure to delete this program and change it to your usual password! "
End If
Rs.Close
Set Rs = Nothing
%>

2. The above program reset the password of administrator admin to www.ofstack.com. If the administrator is not admin, please change Where name='admin' admin to the administrator user name you defined earlier.

3, on the browser access to perform this procedure, such as your access interface is http N point: / / 1.1.1.1 admin, then visit http: / / 1.1.1.1 admin/reset asp can.

Special note: be sure to delete this program after you reset your password and change it to the password you are used to!


Related articles: