Re: Login Problems

Joe Stewart <[email protected]> Tue, 21 Sep 2004 05:41:13 -0500
Newsgroups gmane.comp.cms.phpslash.user
Message-ID <[email protected]>
On Tue, Sep 21, 2004 at 03:04:55PM +0530, Noel M.X. Rodrigues wrote:
> I modified the login block to display a the login form instead of a ling to 
> the login form by commenting/uncommenting the appropriate lines in 
> Block_render_login.class . ( This login form is generated using 
> loginblock.tpl)
> Now the problem is the when enter the username n password , the login page 
> ( generated using loginformCR.tpl) is displayed. Here I don't need to enter 
> the username password...just hit enter/refresh and I'm taken to the User 
> page. It work fine on first try , such as when I restart the browser but on 
> subsequent tries it causes a problem.
> How do I avoid the extra login being displayed?
> Thanks
> 

What version of phpSlash?

You can add 'form=yes' to the source url field to generate the form also.  This 
should be changed to be a block option.  Will try to remember this.

Are these lines in login.php commented?

/*
// old kludge for phplib to accept login from an external form such as the login 
block.  Will be removed. jvs - 02/18/2003
if(isset($HTTP_POST_VARS['username'])) { // this would be present if a login is in 
progress
      $auth->auth["uid"]= "form"; // this is what auth seems to want
      $auth->start();
}
*/

Uncomment them and the login block should login correctly.

thanks,

Joe



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php