SHARE
TWEET

Untitled

a guest Jan 28th, 2016 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function authenticate(Request $request)
  2. {
  3.     $user = User::where('email', $request->email)->first();
  4.  
  5.     $password = bcrypt($request->password . $user->salt);
  6.  
  7.     if (Auth::attempt(['email' => $request->email, 'password' => $password])) {
  8.         return redirect()->intented();
  9.     }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top