Auth :: attempt()始终返回false

时间:2014-08-13 13:07:40

标签: php laravel-4

我修改了代码以满足您的建议,但不起作用:

public function login(){
    $credentials = [
        'email' => \Input::get('email'),
        'pass' => \Input::get('pass')
    ];
    if (\Auth::attempt($credentials)) {
        return "Logged In";
    }
    // return \Redirect::to('/User/login');
    return "No Logged In";
}

0 个答案:

没有答案