11-10-2017, 09:58 AM
I have tried the below code but still gives an error?
<?php
//Whatever you put here will happen after the username and password are verified and the user is "technically" logged in, but they have not yet been redirected to their starting page. This gives you access to all the user's data through $user->data()
if (checkMenu(4,$user->data()->id)){
Redirect::to($us_url_root.'users/account2.php');
else {
Redirect::to($us_url_root.'users/account.php');
}
}
//Where do you want to redirect the user after login
?>
<?php
//Whatever you put here will happen after the username and password are verified and the user is "technically" logged in, but they have not yet been redirected to their starting page. This gives you access to all the user's data through $user->data()
if (checkMenu(4,$user->data()->id)){
Redirect::to($us_url_root.'users/account2.php');
else {
Redirect::to($us_url_root.'users/account.php');
}
}
//Where do you want to redirect the user after login
?>