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)
 Integrating Forum Login with Website Login
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

novicewebdeveloper
Starting Member

14 Posts

Posted - 10 September 2004 :  06:43:46  Show Profile  Visit novicewebdeveloper's Homepage
Hi,

I wanted to let users log into a members only section of my site and be then be able to access the forums without having to login again. I thought I'd create a page that would connect to the FORUM_MEMBERS table and check login details with the username and password fields there. However I noticed that the password is in some sort of encrypted format, and so if I enter my usual password it doesn't work. Does anybody know how I can get round this problem?

Regards,

novicewebdeveloper

laser
Advanced Member

Australia
3859 Posts

Posted - 10 September 2004 :  06:45:51  Show Profile
The passwords are encrypted with SHA256, search for that on this site &/or Google and you'll get a lot of info. You can easily integrate your site with Snitz, and you're heading down the right track if you want to authenticate against the Snitz FORUM_MEMBER table.
Go to Top of Page

novicewebdeveloper
Starting Member

14 Posts

Posted - 10 September 2004 :  08:17:04  Show Profile  Visit novicewebdeveloper's Homepage
Hi,

Thanks laser for your response. I did a search on this site and found this link: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=54457&SearchTerms=SHA256 where you have also responded.

It seems quite complicated. Do I need to create cookies like laser has mentioned? Or will I be fine just trying to figure out how to encrypt the passwords that are entered by the users? And then just carrying on like normal?

Cheers,

novicewebdeveloper
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 10 September 2004 :  21:33:26  Show Profile
It may not be complicated at all, have you already written your members only section, or are you just starting to do that ?

Look at the Tipping Comp section on V8Central. I simply use the Snitz cookie to check if a user is logged in or not, if they are then the page displays normally, if they aren't logged in then other messages are displayed. Basically you need a cookie to see if the user is logged in properly and you reference that on every "members only" page you have ... just like the "members only" pages on the forums (eg. Members Profile)

Encrypted passwords, again not a biggy. To check a users password you simply run it thru the SHA256 process and compare it to what is currently in the database - it either matches (typed properly) or doesn't match (typo, or hack attempt) and you don't let them in. Only on a successful password do you write the cookie.

Snitz as a training tool is fantastic ... all the little things that you might need to extend the forum &/or your site are usually in the code somewhere, and you can access these routines but just remember to include the Snitz link at the bottom of the page.
Go to Top of Page

novicewebdeveloper
Starting Member

14 Posts

Posted - 25 October 2004 :  12:55:25  Show Profile  Visit novicewebdeveloper's Homepage
Hi Laser,

Thanks I have sorted the encryption part.

Now I am wondering where I can find the code for the Snitz Cookie? Which file is it in?

And how would I refernce it?

Regards,

novicewebdeveloper
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 25 October 2004 :  16:20:14  Show Profile
Mate, I read your double-post here : topic.asp?TOPIC_ID=55325

But it sounds like you've bitten off far more than you can chew. Snitz isn't a jigsaw, it is very logically put together. I'm sure if you searched the files for a few minutes, or read up on how to use cookies in ASP you'll find the code in a snap.
Go to Top of Page

Ric
Starting Member

United Kingdom
47 Posts

Posted - 25 October 2004 :  16:35:56  Show Profile
quote:
Originally posted by novicewebdeveloper

Hi Laser,

Thanks I have sorted the encryption part.

Now I am wondering where I can find the code for the Snitz Cookie? Which file is it in?

And how would I refernce it?

Regards,

novicewebdeveloper



I think the code you are after is in inc_header.asp.

Ric

New Photo Album Mod demo
Go to Top of Page

novicewebdeveloper
Starting Member

14 Posts

Posted - 27 October 2004 :  11:09:51  Show Profile  Visit novicewebdeveloper's Homepage
Hi,

Thanks for your advice laser, I read up on cookies in ASP just after posting the last post.

And thanks Ric for answering my question I will take a look at that file. You are a star.

novicewebdeveloper
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.45 seconds. Powered By: Snitz Forums 2000 Version 3.4.07