-1
这是我的代码Laravel验证登录返回特定的错误
public function login_Post()
{
if (Auth::user()->attempt(array('email' => Input::get('email'), 'password' => Input::get('password'), 'active' => 1)))
{
Event::fire('users.login');
return Redirect::to('/')->with('message', 'succsed');
}
else
return Redirect::to('user/login')->withInput(Input::except('password'));
}
我想提醒用户,当他/她是不是积极主动,我怎么能undrestand激活需要或登录由错误的用户名或密码失败?