Kaydet (Commit) 6f15de8f authored tarafından Baran Sekin's avatar Baran Sekin

Implemented login throttling

üst d1c513d7
......@@ -22,6 +22,10 @@ class LoginController extends Controller
*/
protected $redirectTo = '/';
protected $maxAttempts = 5;
protected $decayMinutes = 10;
/**
* LoginController constructor.
*/
......
......@@ -16,7 +16,7 @@ return [
|
*/
'default' => env('CACHE_DRIVER', 'array'),
'default' => env('CACHE_DRIVER', 'database'),
/*
|--------------------------------------------------------------------------
......
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCacheTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cache', function (Blueprint $table) {
$table->string('key')->unique();
$table->mediumText('value');
$table->integer('expiration');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('cache');
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment