I'm getting a weird error in Laravel 5.3's hash mechanism.
Missing argument 2 for Illuminate\Hashing\BcryptHasher::check(), called in C:\xampp\htdocs\Missionseek2\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php on line 237 and defined
This is the code that defines it.
public function postSignIn(Request $request){
$val = DB::table('ministry')->where('Username', Input::get('Username'))->first();
if ($val && Hash::check(Input::get('Password', $val->Password))) {
return redirect()->route('agencydash');
} return 'failed';
// if (Auth::attempt(['Username' => $request['Username'], 'Password' => $request['Password']])) {
// return redirect()->route('agencydash');
// }
//return redirect()->back();
}
What's going on here? I feel like it's not getting the password value from the database and so we're getting an error, but I'm not sure why. The name's are correct.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire