Skip to content

Instantly share code, notes, and snippets.

@american-it
Created October 4, 2020 00:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save american-it/30dc006584863fc20e514f92736893c6 to your computer and use it in GitHub Desktop.
Save american-it/30dc006584863fc20e514f92736893c6 to your computer and use it in GitHub Desktop.
public function boot()
{
$this->configurePermissions();
Fortify::authenticateUsing(function (Request $request) {
Validator::make(request()->all(), [
'g-recaptcha-response' => 'recaptcha'
])->validate();
$user = User::where('email', $request->email)->first();
if ($user && Hash::check($request->password, $user->password)) {
return $user;
}
});
Jetstream::deleteUsersUsing(DeleteUser::class);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment