{"id":17823907,"url":"https://github.com/developedbyme/dbm-custom-login","last_synced_at":"2026-05-21T05:04:14.932Z","repository":{"id":141835235,"uuid":"133948773","full_name":"developedbyme/dbm-custom-login","owner":"developedbyme","description":"Functionality to create custom login pages using the dbm-content plugin for WordPress","archived":false,"fork":false,"pushed_at":"2024-04-22T08:02:18.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T10:44:24.685Z","etag":null,"topics":["wordpress","wp"],"latest_commit_sha":null,"homepage":"http://developedbyme.com","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/developedbyme.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-05-18T12:02:01.000Z","updated_at":"2024-04-22T08:02:21.000Z","dependencies_parsed_at":"2024-04-22T09:26:49.411Z","dependency_job_id":"ae1c1f69-5e18-4c12-8d50-4a4a032fdedb","html_url":"https://github.com/developedbyme/dbm-custom-login","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/developedbyme/dbm-custom-login","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developedbyme%2Fdbm-custom-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developedbyme%2Fdbm-custom-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developedbyme%2Fdbm-custom-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developedbyme%2Fdbm-custom-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developedbyme","download_url":"https://codeload.github.com/developedbyme/dbm-custom-login/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developedbyme%2Fdbm-custom-login/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264810801,"owners_count":23667608,"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":["wordpress","wp"],"created_at":"2024-10-27T17:59:51.932Z","updated_at":"2026-05-21T05:04:09.901Z","avatar_url":"https://github.com/developedbyme.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Custom login for Dbm content\n\n# API\n\n## Data structures\n\n### User\n\n```\n{\n\tid: int,\n\tpermalink: url,\n\tname: string,\n\tgravatarHash: string\n}\n```\n\n### UserWithPrivateData extends User\n\n```\n{\n\tid: int (from User),\n\tpermalink: url (from User),\n\tfirstName: string,\n\tlastName: string,\n\tname: string (from User),\n\temail: string,\n\tgravatarHash: string (from User)\n}\n```\n\n## Endpoints\n\n### Login\n\nLogs in the user in and sets the cookie that controlls if the user is logged in.\n\n#### Request\n\nPOST `/wp-json/wprr/v1/action/login`\n\n```\n{\n\tlog: string,\n\tpwd: string,\n\tremember: boolean\n}\n```\n\n#### Response\n\n```\n{\n\tcode: \"success\",\n\tdata: {\n\t\tauthenticated: boolean,\n\t\tuser: UserWithPrivateData,\n\t\troles: array of string,\n\t\trestNonce: string,\n\t\trestNonceGeneratedAt: unix timestamp\n\t}\n}\n```\n\n#### Errors\n\nHTTP 500 if the authentication doesn't go through\n\n### Logout\n\n#### Request\n\nPOST `/wp-json/wprr/v1/action/logout`\n\n```\n{}\n```\n\n#### Response\n\n```\n{\n\tcode: \"success\",\n\tdata: {\n\t\tauthenticated: false,\n\t\tloggedOutUser: int\n\t}\n}\n```\n\n### Has user\n\nCheck if an email is registered as a user\n\n#### Request\n\nPOST `/wp-json/wprr/v1/action/has-user`\n\n```\n{\n\temail: string\n}\n```\n\n#### Response\n\n```\n{\n\tcode: \"success\",\n\tdata: {\n\t\thasUser: boolean,\n\t\t[userId: int]\n\t}\n}\n```\n\n### Register user\n\nRegisters a user according to a specified method. Based on the method and the server settings the server might run the login directly after registration.\n\n#### Request\n\nPOST `/wp-json/wprr/v1/action/register-user`\n\n```\n{\n\tmethod: string (default: \"default\")\n\temail: string,\n\tpassword: string,\n\tfirstName: string,\n\tlastName: string,\n\t[additional verification data]\n\t[additional meta data]\n}\n```\n\n#### Response\n\n```\n{\n\tcode: \"success\",\n\tdata: {\n\t\tregistered: boolean,\n\t\t[verified: boolean],\n\t\t[alreadyRegistered: true],\n\t\t[userId: int],\n\t\t[user: UserWithPrivateData],\n\t\t[roles: array of string],\n\t\t[restNonce: string],\n\t\t[restNonceGeneratedAt: unix timestamp]\n\t}\n}\n```\n\n#### Errors\n\nNote that the call can give you a code \"success\" and registered false, which means that the registration did not get through for some reason.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopedbyme%2Fdbm-custom-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopedbyme%2Fdbm-custom-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopedbyme%2Fdbm-custom-login/lists"}