Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function doLogin(){
- // create our user data for the authentication
- $userdata = array(
- 'Nombre_Usuario' => Input::get('username'),
- 'Contrasena' => Input::get('password')
- );
- // attempt to do the login
- if (Auth::attempt($userdata, true)) {
- return Redirect::to('/home')->with('message', 'You are logged in.');
- }else{
- return Redirect::to('/')->with('message', 'Your username/password combination was incorrect.')->withInput();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement