Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public function login(Request $req){
  2. $username = $req->input('username');
  3. $pass = $req->input('password');
  4. $rows = DB::table('usuarios')->where(['user_Nombre' => $username])->get();
  5. if(count($rows) > 0){
  6. if($rows[0]->user_Pass === $pass){
  7. echo "Logueado";
  8. }else{
  9. echo "Error";
  10. show("login");
  11. }
  12. }
  13. //echo $username.":".$pass;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement