{"id":35242626,"url":"https://github.com/nojimage/cakephp-login-attempts","last_synced_at":"2026-02-06T15:08:15.810Z","repository":{"id":46571929,"uuid":"94054456","full_name":"nojimage/cakephp-login-attempts","owner":"nojimage","description":"LoginAttempts plugin for CakePHP","archived":false,"fork":false,"pushed_at":"2025-06-09T07:21:12.000Z","size":86,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"cake5","last_synced_at":"2026-02-02T23:40:11.419Z","etag":null,"topics":["authenticate","authentication","cakephp","cakephp-plugin","loginattempts-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nojimage.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-12T04:10:49.000Z","updated_at":"2025-06-09T07:20:19.000Z","dependencies_parsed_at":"2024-03-01T15:46:54.272Z","dependency_job_id":null,"html_url":"https://github.com/nojimage/cakephp-login-attempts","commit_stats":{"total_commits":76,"total_committers":3,"mean_commits":"25.333333333333332","dds":"0.32894736842105265","last_synced_commit":"468038474f34d3f14c17d9bfe704a8dd17680616"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/nojimage/cakephp-login-attempts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojimage%2Fcakephp-login-attempts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojimage%2Fcakephp-login-attempts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojimage%2Fcakephp-login-attempts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojimage%2Fcakephp-login-attempts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nojimage","download_url":"https://codeload.github.com/nojimage/cakephp-login-attempts/tar.gz/refs/heads/cake5","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nojimage%2Fcakephp-login-attempts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29165914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T14:37:12.680Z","status":"ssl_error","status_checked_at":"2026-02-06T14:36:22.973Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authenticate","authentication","cakephp","cakephp-plugin","loginattempts-plugin"],"created_at":"2025-12-30T05:20:45.175Z","updated_at":"2026-02-06T15:08:15.806Z","avatar_url":"https://github.com/nojimage.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoginAttempts plugin for CakePHP\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"LICENSE.txt\" target=\"_blank\"\u003e\n        \u003cimg alt=\"Software License\" src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/nojimage/cakephp-login-attempts/actions\" target=\"_blank\"\u003e\n        \u003cimg alt=\"Build Status\" src=\"https://img.shields.io/github/actions/workflow/status/nojimage/cakephp-login-attempts/ci.yml?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/nojimage/cakephp-login-attempts\" target=\"_blank\"\u003e\n        \u003cimg alt=\"Codecov\" src=\"https://img.shields.io/codecov/c/github/nojimage/cakephp-login-attempts.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/nojimage/cakephp-login-attempts\" target=\"_blank\"\u003e\n        \u003cimg alt=\"Latest Stable Version\" src=\"https://img.shields.io/packagist/v/nojimage/cakephp-login-attempts.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nこのプラグインは、フォームログインの失敗を検知して一定期間内に同一IPから複数回のログイン失敗が発生した場合、以降のログイン処理をブロックします。\n\n## 必要要件\n\n- CakePHP \u003e= 5.0\n- [CakePHP Authentication plugin](https://github.com/cakephp/authentication)\n\n## インストール\n\n[composer](http://getcomposer.org) を使用してインストールできます。\n\n以下のようにして、Composer経由でプラグインをCakePHPアプリケーションへ追加します:\n\n```\ncomposer require nojimage/cakephp-login-attempts:^3.0\n```\n\n### プラグインのロード\n\nアプリケーションの `src/Application.php` に、次の行を追加してプラグインをロードします:\n\n```\n$this-\u003eaddPlugin('LoginAttempts');\n```\n\n### テーブルの作成\n\nマイグレーションを実行し、データベースへ必要なテーブルを作成します:\n\n```\nbin/cake migrations migrate -p LoginAttempts\n```\n\n### 使用方法\n\n`Form` 認証機能の代わりに `LoginAttempts.Form` を使用してください。\n\nAuthentication プラグインを使う場合:\n\n```\n        $service-\u003eloadAuthenticator('LoginAttempts.Form', [\n            'fields' =\u003e ['username' =\u003e 'email'],\n            'attemptLimit' =\u003e 5,\n            'attemptDuration' =\u003e '+5 minutes',\n        ]);\n```\n\n### LoginAttempts.Form のオプション\n\n#### `attemptLimit`\n\n`attemptDuration` の間にログイン失敗回数が `attemptLimit` を超えた場合、ログインを許可しません。\n\ndefault: `5`\n\n#### `attemptDuration`\n\n`attemptDuration` の間にログイン失敗回数が `attemptLimit` を超えた場合、ログインを許可しません。\n\ndefault: `'+5 minutes'`\n\n#### `attemptAction`\n\n試行回数はこのキー別に保存されます。ログインフォームが複数あり、それぞれ別個に制限を設けたい場合に使用します。\n\ndefault: `'login'`\n\n#### `attemptsStorageModel`\n\nログインの失敗回数を記録およびチェックするためのモデルを指定します。\n\ndefault: `'LoginAttempts.Attempts'`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnojimage%2Fcakephp-login-attempts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnojimage%2Fcakephp-login-attempts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnojimage%2Fcakephp-login-attempts/lists"}