This topic is locked

Use two tables for login

6/4/2010 13:30:12
PHPRunner General questions
V
vista author

Hi,
I am creating an application using PHPRunner the latest build. I am two tables for users. Users & Security. They both have different attributes except for user_id and password. In phprunner security settings I can set only one table for logins. How can I set two tables for logins? I know its somehow done through Events but I am unable to get the right code for it to check users from two tables. Can anyone please help me. I have a deadline and this is the only thing remaining in my project!
Thanks in advance! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=14575&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' />

Sergey Kornilov admin 6/4/2010

You can check username/password against the second table in BeforeLogin event.
We do not have a sample code for this unfortunately.

V
vista author 6/4/2010



You can check username/password against the second table in BeforeLogin event.
We do not have a sample code for this unfortunately.


okay thanks,

So after it exists what do I put for ... ?

if($data)

{

// if record exists do something

}

else

{

// if dont exist do something else

}


Thanks!