{"id":18929402,"url":"https://github.com/thecodingmachine/security.simplelogincontroller","last_synced_at":"2025-04-15T15:30:55.918Z","repository":{"id":4593975,"uuid":"5736452","full_name":"thecodingmachine/security.simplelogincontroller","owner":"thecodingmachine","description":"This package contains a simple Splash controller to log into an application. The controller can display a simple form with username/password choice, and has actions to login/logout the application.","archived":false,"fork":false,"pushed_at":"2022-12-01T16:58:31.000Z","size":141,"stargazers_count":0,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"6.0","last_synced_at":"2025-04-11T18:59:50.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/thecodingmachine.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}},"created_at":"2012-09-09T09:35:21.000Z","updated_at":"2022-12-01T16:58:11.000Z","dependencies_parsed_at":"2023-01-13T13:10:26.203Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/security.simplelogincontroller","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fsecurity.simplelogincontroller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fsecurity.simplelogincontroller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fsecurity.simplelogincontroller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fsecurity.simplelogincontroller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/security.simplelogincontroller/tar.gz/refs/heads/6.0","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565083,"owners_count":21125418,"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-08T11:32:24.760Z","updated_at":"2025-04-15T15:30:55.574Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple login controller\n=======================\n\nWhat is this package?\n---------------------\nThis package is part of [Mouf](http://mouf-php.com) login system.\nIt provides a simple [Splash](http://mouf-php.com/packages/mouf/mvc.splash/index.md) controller that displays\na simple login page.\n\nThe controller is using the [UserService](http://mouf-php.com/packages/mouf/security.userservice/README.md) system\nto log the user in your application.\n\nIf you are using [Mouf](http://mouf-php.com), [Splash MVC](http://mouf-php.com/packages/mouf/mvc.splash/index.md)\n(or a Splash compatible system like [Druplash](http://mouf-php.com/packages/mouf/integration.drupal.druplash/README.md)\n or [Moufpress](http://mouf-php.com/packages/mouf/integration.wordpress.moufpress/README.md)) \nand the [UserService](http://mouf-php.com/packages/mouf/security.userservice/README.md), you can use this controller to get a login page for free :)\n\nInstallation\n------------\nStart by adding the package to your dependencies:\n\n```\n{\n\t\"require\" : {\n\t\t\"mouf/security.simplelogincontroller\" : \"^6.0\"\n\t}\n}\n```\n\nRun `php composer.phar update`, then install the package using Mouf UI.\n\nThe install process will create a `login` instance representing the controller.\n\nHow to use it?\n--------------\nEasy! Just point your browser to `http://[server]/[app]/login/`.\nYou should see a login screen.\n\n\u003cdiv class=\"alert\"\u003eBe sure not to forget the trailing / in the URL. It is really important for the\ncontroller to work correctly.\u003c/div\u003e\n\nIn order to logout, use the `http://[server]/[app]/login/logout` URL.\n\nHow to customize?\n-----------------\n###Customizing labels\nYou can customize this instance as you like. In particular, you can edit the attached `SimpleLoginView` object\nthat will let you edit each piece of text displayed on the login screen.\n\n###Customizing design\nIf you need more control on the design of the login screen, the `SimpleLoginView` is using \n[Mouf's rendering system](http://mouf-php.com/packages/mouf/html.renderer/README.md).\nTherefore, you can override the whole design of the page in your application.\n\nTo do this, simply copy the file `/vendor/mouf/security.simplelogincontroller/src/templates/Mouf/Security/Views/SimpleLoginView.twig`\ninto '/src/templates/Mouf/Security/Views/SimpleLoginView.twig'. Here you can create your own version of the view.\nDo not forget to purge your cache in Mouf UI after copying the files for your new template file to be detected.\n\nAlternatively, if you only need to display a few HTML elements before or after the login box, you can use the\n`contentBeforeLoginBox` and `contentAfterLoginBox` properties of the `login` instance. \n\n###Customizing behaviour\nYou can register a number of [actions](http://mouf-php.com/packages/mouf/utils.action.action-interface/README.md)\nthat will be performed before displaying the view by adding those actions in the `actions` property\nof the `login` instance. \n\n###Customizing URL\nBy default the URL of the login screen if `/login/`.\nThis is actually the name of the controller's instance. If you want to change this URL, you just have to change the\nname of the `SimpleLoginContoller` instance in Mouf UI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fsecurity.simplelogincontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fsecurity.simplelogincontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fsecurity.simplelogincontroller/lists"}