I want to compare the password from the inputfield with the entry in the database. If the input from the user is correct he will get redirected. If its wrong nothing should happen.
I have this code in my Controller:
public function check(check $check){
if (User::where('password', '=', Input::get('password'))->exists()) {
return redirect()->route('site.create');
}
Site::return($request->all());
}
And something like this stands in my view:
<div class="form-group row">
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('please type in your password') }}</label>
<div class="col-md-6">
<input id="password" type="password" class="form-control" name="password" required>
Thank you for every help i appreciate it.
Authto handle users and passwords