Print Page | Close Window

check passwords

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=662
Printed Date: 29 March 2026 at 6:28pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: check passwords
Posted By: vdub
Subject: check passwords
Date Posted: 02 March 2003 at 4:06pm

I have a problem maybe someone can help me with.

 

I am upgrading my site to ver 7 and I need to check a user’s password. I have an advertising system that runs off the database and in order for someone to log in to it they need to use there forum password.

 

Heres the code I have now

 

##########################################

username = Request.Cookies("Forum")("UID")

pass=Request.QueryString("pass")

 

SQL = "Select * From tblAuthor Where User_code = '"& username &"'"

Set RS = DBConnection.Execute(SQL)

 

name = RS("Username")

passcheck = RS("password")

salt = RS("salt")

 

'Check password

pass = pass & salt

 

'Incript password

pass = HashEncode(pass)

 

 

if pass = passcheck Then

#########################################

 

I get this error

 

########################################

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'HashEncode'

/ads/data/pass.asp, line 23

###########################################

 

Dose anyone have any ideas

 

 




Replies:
Posted By: vdub
Date Posted: 02 March 2003 at 4:08pm

I fixed it.

I added this to the top of the page

########################

<!--#include virtual="/forum/functions/functions_hash1way.asp" -->

#########################




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net