Skip to content

Commit

Permalink
feat: throttle login attempts (koel#1319)
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan committed May 21, 2021
1 parent 2a8d183 commit 12b3ee6
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/Http/Controllers/API/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
use App\Repositories\UserRepository;
use App\Services\TokenManager;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Hashing\HashManager;
use Illuminate\Http\Response;

class AuthController extends Controller
{
use ThrottlesLogins;

private $userRepository;
private $hash;
private $tokenManager;
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"doctrine/dbal": "^2.10",
"lstrojny/functional-php": "^1.14",
"teamtnt/laravel-scout-tntsearch-driver": "^11.1",
"algolia/algoliasearch-client-php": "^2.7"
"algolia/algoliasearch-client-php": "^2.7",
"laravel/ui": "^3.2"
},
"require-dev": {
"facade/ignition": "^2.5",
Expand Down
59 changes: 58 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 12b3ee6

Please sign in to comment.