Author |
Topic  |
|
dlyles
New Member

72 Posts |
Posted - 23 August 2002 : 10:04:38
|
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
|
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? |
 |
|
dlyles
New Member

72 Posts |
Posted - 23 August 2002 : 10:14:24
|
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 |
 |
|
Azaniah
Senior Member
   
United Kingdom
1004 Posts |
Posted - 23 August 2002 : 10:35:58
|
Total aside but thats a nice looking site |
Eagles fly!, but weasels don't get sucked into jet engines. |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 23 August 2002 : 10:43:06
|
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. |
 |
|
dlyles
New Member

72 Posts |
Posted - 23 August 2002 : 11:11:31
|
[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 |
 |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 23 August 2002 : 11:27:38
|
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 |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 23 August 2002 : 12:11:51
|
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. |
 |
|
dlyles
New Member

72 Posts |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 23 August 2002 : 14:32:09
|
you're welcome  |
 |
|
|
Topic  |
|