Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Authentication system

Quote Reply
Authentication system
Hi,

Is there a possible way to have the user register before to allow them to add or modify an existing link?

Something similar to this board?
thank you!

pdatoon

Quote Reply
Re: Authentication system In reply to
Not, "out of the box", but it's pretty easy. Basically, just add:

my $s = $in->param('s') | | $in->cookie('s');
my $user = &authenticate($s);
if (!$user) {
... # error page/redirect to login
}
else {
... # rest of add or modify.cgi
}

You just want to make sure a user is logged in before you allow them to do anything in add or modify.

Hope that helps,

Alex
Quote Reply
Re: Authentication system In reply to
Thank you Alex for your reply.

Is this code valid for any random user that visit your site and want to add a url or just for the registered users you have in the control panel?

Thank you!
Quote Reply
Re: Authentication system In reply to
hi pda toon..

"PDA".. are you into that kind of stuff? Smile I AM! Smile

anyways.. i made this mod quite awhile ago..

http://www.pdamania.com/modify.cgi

u: pdamania
p: test

add.cgi is pretty much the same.. just makes you login to add.. then it catches your username when you submit..

------------------
Jerry Su
Links SQL Licensed
------------------
Quote Reply
Re: Authentication system In reply to
oh yea.. i did post instructions (i just found out reading another thread Smile)..

http://www.gossamer-threads.com/...um9/HTML/000497.html

------------------
Jerry Su
Links SQL Licensed
------------------