ollieread/multiauth

always retung false

sedehi opened this issue · 0 comments

i used this code in controller

$input = Input::all();

    $Validator = Validator::make($input, array(
                'email'    => 'required|email',
                'password' => 'required|min:6'
    ));

    if($Validator->passes()) {

        Auth::author()->attempt(array(
            'email'    => $input['email'],
            'password' => Hash::make($input['password'])
        ));

        var_dump(Auth::author()->check());
    }

return this on submit form

select * from author where email = ? limit 1
bool(false)