Advertisement
Guest User

Login Function

a guest
Jul 21st, 2014
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public function login()
  2. {
  3. if(Input::has('login_email') AND Input::has('login_password')){
  4. if (Auth::attempt(array('email'=>Input::get('email'), 'password'=>Input::get('password')))) {
  5. echo 'Success';
  6. }else{
  7. echo 'Failed';
  8. }
  9. }else{
  10. return View::make('auth.login');
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement