Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. $v = new AccederValidator;
  2. $usuario = $this->usuario->byEmail(Input::get('email'));
  3.  
  4. if ( Hash::check(Input::get('contrasena'), $usuario->contrasena))
  5. {
  6. Session::put('usuario', serialize($usuario));
  7. return Redirect::route('admin.index');
  8. }
  9. else
  10. {
  11. Session::flash('error.login', 1);
  12. return Redirect::back();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement