Created
May 6, 2013 19:51
-
-
Save gpassarelli/5527659 to your computer and use it in GitHub Desktop.
LARAVEL RESTful login app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$credentials = array('username' => $_SERVER['PHP_AUTH_PW'], 'password' => $_SERVER['PHP_AUTH_PW']); | |
if (Auth::attempt($credentials)) | |
{ | |
return Redirect::to('user/profile'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment