i had an a problem in login page he never attempt my data i make a hash in my db password but a problem is not solved could any one help me ?
this is my controller
....function postlogin() { ....
$input=Input::all();
$rules=array(
'email'=>'required|email',
'password'=>'required|min:6'
);
$val= Validator::make($input,$rules);
if($val->fails())
{
return Redirect::to('login')->withInput()->withErrors($val);
}else{
$method= array('email'=>$input['email'],'password'=>$input['password']);
if(Auth::attempt($method))
{
return 'gooooooooood';
}else{
return 'bad connsection';
}
}
....}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community