Re: Question on Registration Method

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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();

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux