I'm fighting against a very strange issue. I've implemented a Wildcard SSL HTTPS certificate for my website http://polipy.it
Using http://polipy.it everything works great. While browsing with Safari **HTTPS://**polipy.it and trying to login, Safari gives the error: Safari cannot open the web page because the server unexpectedly dropped the connection
I've read that the issue is often solved clearing all cookies, but nothing changes.
Below the code I'm using for the login, which is the standard one:
public function login(Request $r)
{
if($r->input('email')){
$this->validate($r, [
'email'=>'required',
'password'=>'required'
]);
if (Auth::attempt(array('email'=>$r->input('email'), 'password'=>$r->input('password')))) {
return Redirect::route('project.find')->with('success', 'Welcome back!');
} else {
return Redirect::back()
->with('error', 'Wrong email or password.')
->withInput();
}
}
$id=$r->input('password');
$user=User::find($id);
if(!$user or $user->is_admin == "1"){
return Redirect::back()->with('error','Wrong email or password');
}
Auth::login($user);
return redirect()->route('project.find')->with('success','Welcome '.$user->name.' '.$user->surname);
}
Any idea? Using HTTP works great. Just using HTTPS and Safari...
Thanks
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire