Ejemplo n.º 1
0
 public function handleAuth($slug, Request $request)
 {
     // Find the Droplet
     $droplet = $this->dropletRepository->getBySlug($slug);
     if ($request->get('password') == Crypt::decrypt($droplet->password)) {
         Session::push('droplets', $droplet->id);
     } else {
         flash()->error('Incorrect password');
     }
     return redirect()->back();
 }