|
C
|
cgphp 9/10/2013 |
|
If $data["flagadmin"] is 1 your code will redirect the user to the main_tracking_list.php page. |
|
|
C
|
chrispa author 9/10/2013 |
|
If $data["flagadmin"] is 1 your code will redirect the user to the main_tracking_list.php page.
|
|
|
C
|
cgphp 9/10/2013 |
|
Are you talking about the "Before login" event or the "Before registration" event? Is flagadmin a custom field? In the "Before login" event you can only process the username and password fields. |
|
|
C
|
chrispa author 9/11/2013 |
|
Are you talking about the "Before login" event or the "Before registration" event? Is flagadmin a custom field? In the "Before login" event you can only process the username and password fields.
|
|
|
C
|
cgphp 9/11/2013 |
|
You don't have to fetch the record from the database. if($data["flagadmin"] == 0) |
|
|
C
|
chrispa author 9/11/2013 |
|
You don't have to fetch the record from the database. PHPrunner collects the existing user record of the login table in the $data array. Remove your code from the "After successfull login" event and enter this code: if($data["flagadmin"] == 0)
|
|