Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected function log() {
- $email=Input::get('email');
- $pass=Input::get('password');
- $user = DB::select("SELECT * FROM users where email = '".$email."' and password = '".$pass."'");
- foreach($user as $users){
- if(Input::get('email') == $users->email){
- return redirect('/');
- }else{
- return view('site.warning');
- }
- }
- }
Add Comment
Please, Sign In to add comment