Guest User

Untitled

a guest
Jan 31st, 2018
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. protected function log() {
  2.  
  3. $email=Input::get('email');
  4. $pass=Input::get('password');
  5.  
  6. $user = DB::select("SELECT * FROM users where email = '".$email."' and password = '".$pass."'");
  7.  
  8. foreach($user as $users){
  9. if(Input::get('email') == $users->email){
  10. return redirect('/');
  11. }else{
  12. return view('site.warning');
  13.  
  14. }
  15. }
  16.  
  17. }
Add Comment
Please, Sign In to add comment