Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

laravel auth credential attempt check extra field whereIn Array #15387

Closed
baqirfarooq opened this issue Sep 10, 2016 · 2 comments
Closed

laravel auth credential attempt check extra field whereIn Array #15387

baqirfarooq opened this issue Sep 10, 2016 · 2 comments

Comments

@baqirfarooq
Copy link

baqirfarooq commented Sep 10, 2016

  • Laravel Version: #.#.#
  • PHP Version:
  • Database Driver & Version:

Description:

$credentials = [
        'email'       => $request->get('email'),
        'password' =>  $request->get('password'),
        'type'         => ['member', 'school'],
        'status'       =>'1',
];
if (Auth::attempt($credentials, $request->has('remember'))) {
       return redirect('/account')->with('success', 'Login Successfully');
}
return redirect()->back()->with('error', 'Invalid Credentials!');

Error Accured Invalid Credentials to Add 'type' => ['member', 'school'],

Steps To Reproduce:

@themsaid
Copy link
Member

That's not supported in laravel atm, please feel free to submit a Pull Request.

Closing since this isn't actually a bug report.

@VinceG
Copy link
Contributor

VinceG commented Jun 17, 2018

@baqirfarooq See #24620

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants