{"id":20058298,"url":"https://github.com/originphp/user_authentication","last_synced_at":"2025-10-13T15:32:27.768Z","repository":{"id":57033040,"uuid":"207599059","full_name":"originphp/user_authentication","owner":"originphp","description":"Quickly add user registration, login, changing passwords features to your we application.","archived":false,"fork":false,"pushed_at":"2021-07-28T06:38:17.000Z","size":61,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T21:47:04.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/originphp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-10T15:42:47.000Z","updated_at":"2021-07-28T06:38:10.000Z","dependencies_parsed_at":"2022-08-23T16:20:27.813Z","dependency_job_id":null,"html_url":"https://github.com/originphp/user_authentication","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/originphp%2Fuser_authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/originphp%2Fuser_authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/originphp%2Fuser_authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/originphp%2Fuser_authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/originphp","download_url":"https://codeload.github.com/originphp/user_authentication/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241488152,"owners_count":19970826,"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":[],"created_at":"2024-11-13T13:01:03.602Z","updated_at":"2025-10-13T15:32:22.741Z","avatar_url":"https://github.com/originphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# User Authentication Plugin\n\nThe User Authentication plugin, provides user registration, sending a welcome emails, changing passwords, verifying user email addresses using email notifications. This plugin takes less than 2 minutes to add to your application and provides you with everything you need to get started.\n\n## Installation\n\nInstall the the `UserAuthentication` plugin\n\n```linux\n$ composer require originphp/user_authentication\n```\n\n## Setup\n\nLoad the `AuthComponent` in the `AppController` initialize method.\n\n```php\nclass AppController extends Controller\n{\n    protected function initialize() : void\n    {\n        $this-\u003eloadComponent('Auth', [\n            'loginAction' =\u003e '/login',\n            'loginRedirect' =\u003e '/profile', # Set this to something valid\n            'logoutRedirect' =\u003e '/login',\n            'model' =\u003e 'UserAuthentication.User'\n        ]);\n    }\n}\n```\n\nLoad database schema for the User (you can change this later)\n\n```linux\n$ bin/console db:schema:load UserAuthentication.schema\n```\n\nLoad the Queue schema, which use for sending reset password and email verification notices.\n\n```linux\n$ bin/console db:schema:load queue\n```\n\nSet the `App.name` value in your `config/application.php`\n\n```php\nConfig::write('App.name','Web Application');\n```\n## Usage\n\nTo signup\n\n[http://localhost:8000/signup](http://localhost:8000/signup)\n\nTo login\n\n[http://localhost:8000/login](http://localhost:8000/login)\n\n\u003e This will take you to the  `loginRedirect` setting you setup in your AppController\n\nTo start the password reset process\n\n[http://localhost:8000/forgot_password](http://localhost:8000/forgot_password)\n\nTo view or edit your user profile\n\n[http://localhost:8000/profile](http://localhost:8000/profile)\n\nTo view the API token\n\n[http://localhost:8000/token](http://localhost:8000/token)\n\n\u003e If you are not going to be using API tokens then you can remove the route from `config/routes.php`\n\n## Creating App Source\n\nTo install the source into your app, and rename the namespaces, type in\n\n```linux\n$ bin/console user-authentication:install\n```\n\nCopy and paste the routes from `plugins/user_authentication/config/routes.php` to the `config/routes.php`\n\nCopy the database schema from `plugins/user_authentication/database/schema.php` either into your existing schema file `database/schema.php` or into a new file.\n\nUninstall the Plugin\n\n```linux\n$ composer remove originphp/user_authentication\n```\n\n## What Next\n\nNow its all working fine, it is time to copy the schema for the User Authentication plugin and the queues into your `application/schema.php`.\n\n## Testing The Plugin\n\nThe controller integration test requires your `AppController` loads the `AuthComponent`, but other tests will run fine without this.\n\nLoad the schema for the `UserAuthentication` plugin and queues into the test database\n\n```linux\n$ bin/console db:schema:load --connection=test UserAuthentication.schema\n$ bin/console db:schema:load --connection=test queue\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foriginphp%2Fuser_authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foriginphp%2Fuser_authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foriginphp%2Fuser_authentication/lists"}