{"id":20561447,"url":"https://github.com/junkfix/node-red-custom-login","last_synced_at":"2025-07-06T13:07:14.064Z","repository":{"id":109013943,"uuid":"500098851","full_name":"junkfix/node-red-custom-login","owner":"junkfix","description":"Node-RED custom login page for admin and dashboard with brute-force protection","archived":false,"fork":false,"pushed_at":"2024-03-07T13:48:56.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T18:52:33.444Z","etag":null,"topics":["custom","login","node-red"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/junkfix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-06-05T13:00:36.000Z","updated_at":"2024-04-05T20:10:39.000Z","dependencies_parsed_at":"2024-03-07T14:55:12.674Z","dependency_job_id":"7efdbb41-48ca-45d4-a558-6f2c8f72596a","html_url":"https://github.com/junkfix/node-red-custom-login","commit_stats":null,"previous_names":["junkfix/node-red-custom-login"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/junkfix/node-red-custom-login","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junkfix%2Fnode-red-custom-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junkfix%2Fnode-red-custom-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junkfix%2Fnode-red-custom-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junkfix%2Fnode-red-custom-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/junkfix","download_url":"https://codeload.github.com/junkfix/node-red-custom-login/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/junkfix%2Fnode-red-custom-login/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263905742,"owners_count":23527972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["custom","login","node-red"],"created_at":"2024-11-16T03:58:08.097Z","updated_at":"2025-07-06T13:07:14.045Z","avatar_url":"https://github.com/junkfix.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/htmltiger"],"categories":[],"sub_categories":[],"readme":"# Custom Login with brute force protection\n\nHere is the `settings.js` file changes:\n\n\n```\nmodule.exports = {\n\n    //adminAuth: {\n    //\t...\n    //},\n\t\n    //httpNodeAuth: {user:\"user\",pass:\"$2a$0...WV9DN.\"},\n\t\n    httpAdminRoot: '/admin',\n\t\n    httpAdminMiddleware: require(\"./custom-login.js\"),\n\n    //httpNodeMiddleware: function(req,res,next) {\n    // ...\n    //},\n    \n    //for \"http in\" node protection\n    httpNodeMiddleware: require(\"./custom-login.js\"),\n    \n    //for dashboard protection\n    ui: {\n        path: \"ui\",\n        middleware: require(\"./custom-login.js\")\n    },\n}\n```\nhere is full default [settings.js](https://github.com/htmltiger/node-red-custom-login/files/14100239/settings.js.txt) with above changes\n\n\ncopy `custom-login.js` in the same folder as `settings.js`\n\nYou can also configure the function to send MQTT message or run a shell command.\n---\n\n\u003ca href=\"https://www.buymeacoffee.com/htmltiger\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/white_img.png\" alt=\"Buy Me A Coffee\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunkfix%2Fnode-red-custom-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjunkfix%2Fnode-red-custom-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjunkfix%2Fnode-red-custom-login/lists"}