Re: [Phplib-users] Default Auth Help
Brought to you by:
nhruby,
richardarcher
From: Giancarlo P. <gia...@na...> - 2001-09-08 00:36:55
|
Brian Popp wrote: > > I need a little help with a problem I'm having. It's probably really simple, > but I can't seem to hack my way through it. > > I am using default authentication on a site. I have a link at the top of the > page that can be used to login. When you click the link, it takes you to a > page that does a: > > page_open(...); > $auth->login_if ( $auth->auth[uid] == "nobody" ); > page_close(); > > This pulls up auth's corresponding login dialog. The problem is, I have a > cancel button on this dialog. But there a specific name for that cancel button, default I think 'cancel_button', specified in the Auth var $cl. Did you use that name for the input field/link_querystr? Then method start of Auth (that is any phplib Auth'd page) should take care of that. No need for a special ACTION also see: http://marc.theaimsgroup.com/?l=phplib&m=94269299705992&w=2 dunno if it's already in the code. -Gian No matter what I put behind the cancel, I > can't get rid of the login dialog (unless I enter a valid username and > password). I'm currently trying to make the cancel button link to a logout > page that does: > > my_page_open(); > $auth->logout (true); > my_page_close(); > > But this doesn't work. The logout page apparently generates another login > page before it gets to the logout() function. > > Thanks in advance for ANY help! > > -bpopp > > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users |