Author |
Topic  |
|
novicewebdeveloper
Starting Member
14 Posts |
Posted - 10 September 2004 : 06:43:46
|
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
|
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. |
 |
|
novicewebdeveloper
Starting Member
14 Posts |
Posted - 10 September 2004 : 08:17:04
|
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 |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 10 September 2004 : 21:33:26
|
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. |
 |
|
novicewebdeveloper
Starting Member
14 Posts |
Posted - 25 October 2004 : 12:55:25
|
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 |
 |
|
laser
Advanced Member
    
Australia
3859 Posts |
Posted - 25 October 2004 : 16:20:14
|
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. |
 |
|
Ric
Starting Member
United Kingdom
47 Posts |
Posted - 25 October 2004 : 16:35:56
|
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 |
 |
|
novicewebdeveloper
Starting Member
14 Posts |
Posted - 27 October 2004 : 11:09:51
|
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 |
 |
|
|
Topic  |
|