Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - check passwords
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

check passwords

 Post Reply Post Reply
Author
vdub View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 February 2003
Location: United States
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote vdub Quote  Post ReplyReply Direct Link To This Post Topic: check passwords
    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

 

 

Back to Top
vdub View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 February 2003
Location: United States
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote vdub Quote  Post ReplyReply Direct Link To This Post 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" -->

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

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.