1
在routes.php文件驗證登錄節流不缺省auth在Laravel 5.2工作
Route::post('/login', ['uses'=> 'Auth\[email protected]']);
在我AuthController
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
class AuthUserController extends Controller
{
use AuthenticatesAndRegistersUsers, ThrottlesLogins;
-------
protected $maxLoginAttempts = 4;
protected $lockoutTime = 300;
和多數民衆贊成它,我不重寫後登錄只是讓它使用默認。
因此,嘗試超過4次後,它也不會抑制請求,即沒有任何錯誤導致限制。請幫忙。