Advertisement
Guest User

Untitled

a guest
Dec 19th, 2016
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1. <?php
  2. //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()
  3.  
  4. //Where do you want to redirect the user after login
  5. //note that this path is relative from the userc/scripts folder, hence the ../../
  6.  
  7.  
  8. $code = Input::get('code');
  9.  
  10. if ($code == '1234'){ //sales department
  11. Redirect::to('http://mydomain.com/sales.php');
  12. }if ($code == '5678'){ //quality assurance dept
  13.   Redirect::to('http://mydomain.com/quality.php');
  14. }else{
  15.   Redirect::to('http://mydomain.com/');
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement