Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Password, cookies and more...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  10:04:38  Show Profile  Visit dlyles's Homepage
Just upgraded to 3.4 on my Raq3 using chiliSoft and everything is working great. My only problems are

My site is a members based site and now all of the passwords are encrypted and my users old passwords don't work in the rest of my site although they work on the forums. What can I do?

Also, I would like the forum to recognize the same cookie used in the site so the users wouldn't have to login to the site then, login to the forum. Thanks.

D. Lyles
http://www.uniquestdesigns.com

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 23 August 2002 :  10:12:13  Show Profile
you need to modify the external login to use inc_sha256.asp and encrypt the passwords before they get validated (code for that can be found in inc_header.asp).

Are you using two seperate logins now? Maybe you could combine them to one by using the forums' login for everything?
Go to Top of Page

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  10:14:24  Show Profile  Visit dlyles's Homepage
That would probably be best if I just used the forum login for everything. But where is the login exactly so I can just take that and not have them login from the forum screen. Maybe I can just take the header file. Is that possible? It would kill both of my problems.

D. Lyles
http://www.uniquestdesigns.com
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 23 August 2002 :  10:35:58  Show Profile  Visit Azaniah's Homepage
Total aside but thats a nice looking site

Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 23 August 2002 :  10:43:06  Show Profile
you can use inc_header.asp on the rest of your site too. Just remember to include config.asp in all your pages aswell as inc_sha256.asp (they are not included in inc_header.asp but probably could be included there for easier changing).
inc_func_common.asp is needed, but already included in the top of inc_header.asp, so no need to worry about that.
Go to Top of Page

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  11:11:31  Show Profile  Visit dlyles's Homepage
[quote]you need to modify the external login to use inc_sha256.asp and encrypt the passwords before they get

Ok, how would i do that?

D. Lyles
http://www.uniquestdesigns.com
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 23 August 2002 :  11:27:38  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
Look in inc_header.asp for the login code. You will also need to include inc_sha256 for the password encryption...

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 23 August 2002 :  12:11:51  Show Profile
this code is in inc_header.asp and handles the encryption of the password after the login button has been pressed, and clears the cookies when the logout button has been pressed:
select case Request.Form("Method_Type")
case "login"
strEncodedPassword = sha256("" & Request.Form("Password"))
select case chkUser(strDBNTFUserName, strEncodedPassword,-1)
case 1, 2, 3, 4
Call DoCookies(Request.Form("SavePassword"))
strLoginStatus = 1
case else
strLoginStatus = 0
end select
case "logout"
Call ClearCookies()
end select


You'll need to use that, together with the aforenamed includes to get the external login working if you're not using inc_header.asp and the aforenamed includes.
Go to Top of Page

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  13:03:09  Show Profile  Visit dlyles's Homepage
Thanks, I used inc_header as the login.

D. Lyles
http://www.uniquestdesigns.com
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 23 August 2002 :  14:32:09  Show Profile
you're welcome
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07