Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function login(Request $req){
- $username = $req->input('username');
- $pass = $req->input('password');
- $rows = DB::table('usuarios')->where(['user_Nombre' => $username])->get();
- if(count($rows) > 0){
- if($rows[0]->user_Pass === $pass){
- echo "Logueado";
- }else{
- echo "Error";
- show("login");
- }
- }
- //echo $username.":".$pass;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement