Re: Question on Registration Method
| From: | Stuart Felenstein | Date: | Tue, 28 Sep 2004 13:08:18 +0000 |
| Subject: | Re: Question on Registration Method | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36437@lists.php.net to get a copy of this message | ||
Well, finally suceeding to get by activation page
working, where the 0 is flipped to 1 to mean actived,
I'm stuck on the login page.
Unfortunately I'm stuck :) with what I have below.
It's part of an authentication system. This code
doesn't include the includes, but I thought maybe
significant enough to figure out where I can place a
line or two of code to throw an error on the
transaction if "active != 1"
Any ideas ?
Sorry if this is out of order.
Stuart
//set the STARTER condition
$iLogin->registerTrigger(STARTER,'KT_TriggerSTARTER_Default',1,(isset($HTTP_POST_VARS['MM_Login'])
? $HTTP_POST_VARS['MM_Login'] : null));
//register the special Login Trigger
$iLogin->registerTrigger(AFTER,'KT_TriggerAFTER_LoginTrigger',1,'sessionvariable',(isset($HTTP_POST_VARS['RememberMe'])
? $HTTP_POST_VARS['RememberMe'] : null ));
// set the autogeneration information
$iLogin->generateSalt('xxxxxx');
$iLogin->setLoginTable('MemberTable');
$iLogin->passwordIsCryptedInDatabase(true);
$iLogin->setFields('MemberID','Username','password','level');
$iLogin->setValues((isset($HTTP_POST_VARS['username'])
? $HTTP_POST_VARS['username'] : null
),(isset($HTTP_POST_VARS['password']) ?
$HTTP_POST_VARS['password'] : null ));
// execute the transaction
$LurkerLogin->executeTransaction();