Wrox Programmer Forums
|
BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 Databases by Thearon Willis; ISBN: 9780764588945
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2006, 02:50 PM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login form

Everything was fine until chapter 12. When I came to page 406, I ran the code, I entered the password for user, manager and admin, password didn't work of course, because password is hashed in database previously, i guess in Chapter 11. I copied the hashed password and entered it as password in login form, and it worked. Actually, login form was one of the things that i was wondering most. I'm also using in my programs returning back userid if login succeeds, but what I was wondering how to compare the password in server side, i mean sending encrypted password over the network, decrypt it in stored password, hashing it and comparing with the database value. when i saw that password kept as hashed in database in the sample, i was amazed that i can see a nice example of such login procedure, but now i'm dissappointed after chapter 12. Now, until the end of the book, i need to use hashed string as a password to login :( Any suggestion? maybe an errata to stored procedure in chapter 12 (usp_ValidateLogin)?

Thx in advance

 
Old May 14th, 2006, 01:57 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

I'm not quite sure what the question is. Could you restate the question please?

Thearon
 
Old May 15th, 2006, 08:02 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Simply, the passwords are hashed inthe database, but the password that we are entering in Time Tracker application and Web interface, are not converting the password to hash and send it to stored procedure, nor the stored procedure is getting the password, hash it and compare it. Therefore stored procedure compares the pure password with hashed password in the database, as a result, user cannot login. I'm copying the hashed password each time from the database and entering into the password text box in the application to login.

 
Old May 15th, 2006, 09:02 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Please check step 11 on page 403. This is the procedure that calls the procedure to hash the password before calling the stored procedure.

Thearon





Similar Threads
Thread Thread Starter Forum Replies Last Post
Login form haswalt VB Databases Basics 3 June 25th, 2007 12:27 AM
Basic Login Form agleave VB How-To 4 February 26th, 2007 11:59 AM
Login Form NetNoob BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 3 November 3rd, 2006 01:01 AM
Student login form aaronjaf Access 1 May 8th, 2006 03:29 AM
Login form question Jams30 PHP Databases 1 December 4th, 2003 12:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.