{"id":15022603,"url":"https://github.com/codeigniterpower/codeigniter-login","last_synced_at":"2026-01-28T18:01:44.340Z","repository":{"id":164184693,"uuid":"628019464","full_name":"codeigniterpower/codeigniter-login","owner":"codeigniterpower","description":"a CI login example using: simple check, database or mail IMAP account","archived":false,"fork":false,"pushed_at":"2023-05-11T22:10:17.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T17:55:53.684Z","etag":null,"topics":["codeigniter","codeigniter2","codeigniter3","login","odbc","php","php5","php7","php8","session","sqlite","sqlite3","venenux"],"latest_commit_sha":null,"homepage":"https://gitlab.com/codeigniterpower/codeigniter-login","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeigniterpower.png","metadata":{"files":{"readme":"README.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":"2023-04-14T18:07:38.000Z","updated_at":"2023-11-20T16:10:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"5860b468-fa75-4c18-a1fe-be70fc91d47a","html_url":"https://github.com/codeigniterpower/codeigniter-login","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeigniterpower%2Fcodeigniter-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeigniterpower%2Fcodeigniter-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeigniterpower%2Fcodeigniter-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeigniterpower%2Fcodeigniter-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeigniterpower","download_url":"https://codeload.github.com/codeigniterpower/codeigniter-login/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243318758,"owners_count":20272144,"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":["codeigniter","codeigniter2","codeigniter3","login","odbc","php","php5","php7","php8","session","sqlite","sqlite3","venenux"],"created_at":"2024-09-24T19:58:11.090Z","updated_at":"2026-01-28T18:01:39.303Z","avatar_url":"https://github.com/codeigniterpower.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# codeigniter-login\n\nLogin template for codeigniter repo, this project just use session files, the most simple\n\nThe project its at https://gitlab.com/codeigniterpower/codeigniter-login\n\n## How to use:\n\nThe project is just 4 files in fact, check [Development](#development) section in this document.\n\n#### Installation\n\nJust clone the repo:\n\n```\nmkdir ~/Devel \u0026\u0026 ~/Devel\n\ngit clone --recursive https://gitlab.com/codeigniterpower/codeigniter-login\n```\n\nThen enable \"user directory\" module into your webserver, change \"public_html\" to \"Devel\nand visit `http://localhost/~general/codeigniter-login`\n\n#### Deploy into your webserver\n\nJust clone the repo:\n```\nmkdir /var/www/html \u0026\u0026 /var/www/html\n\ngit clone --recursive https://gitlab.com/codeigniterpower/codeigniter-login\n```\n\nThen enable the site and visit `http://localhost/codeigniter-login`\n\n## Database\n\nThere's no need if you want can setup a method in the [webappweb/models/Usersmodel.php](webappweb/models/Usersmodel.php) \nthat just use your own storage, user check or way to autenticate the user data.\n\nBy default this project uses a embebed sqlite3 database, that you can \nchange or move it, just by configure it on [webappweb/config/database.php](webappweb/config/database.php).\n\nSince version 2.0.0 the project need a database connection, use the files \nat [webappdb](webappdb) directory.\n\nSince version 5.0.0 the project provide a sqlite database, by default its \nat [webappdb/codeigniter.db](webappdb/codeigniter.db).\n\n## Development\n\nThe core core process is just 4 files, complete documented at the [LOGIN.md](LOGIN.md) document:\n\n```\n webappweb                             The Applicaions directory of Codeigniter renamed\n          |\n          /controllers                 Place of the controllers that manages logic\n          |          |\n          |          /Indexauth.php    Login controller mechanish to init or end session\n          |          |\n          |          /Indexhome.php    Another page entry, will check valid sesion object\n          |\n          /views                       Pages display rendering data from controllers\n                |\n                /homesview.php         Arbitrary page only viewable under valid session\n                |\n                /inicion.php           Login view page for init the sesion process\n```\n\nUntil version 1.0.0 the check per se is made at the file `Indexauth.php` in the auth function.. \nthe line of the variable `$rs_access` has the status.. if not TRUE or not NULL the check is passed.\n\nSince version 2.0.0 a database layer will be necessary so an extra file at `webappweb/models/Usersmodel.php`\nits necesary to provide functionality, and `$rs_access` is the result of the DB check.\n\nSince version 3.0.0 a imap mail layer was added so an extra files are at `webappweb/libraries/Imap.php` \nand `webappweb/config/imap.php`, `$im_access` is the result of the mail login check.\n\nSince version 4.0.0 a main controller do the check work of the sesion at `webappweb/core/CP_Controller.php`\nthat all controllers inherit, so `$this-\u003echecksession();` is common functionality and reusable code.\n\nSince version 5.0.0 the project provide a sqlite database, by default its \nat `webappdb/codeigniter.db` and extra view are show to noted more the sesion handle.\n\nFor mode detailed please read the [LOGIN.md](LOGIN.md) document\n\n#### Profiler and debugging\n\nDebugging is using our profiler, it requires a special view which is not part of the project \nso it is provided as an extra file in the [vendor](vendor) directory, just take it and put it on \nthe views directory and profiler will work.\n\nUntil version 3.9.9 it can be simply disabled in the controller constructor, since version 4.0.0 \nit is disabled in the core controller constructor inherited by the other controllers.\n\n#### Process simple login\n\nThis is the main entry controller, it will load the views of login form page \nto input credentials, also will process such request to validate the login \nprocess of the credentials.\n\n```\n-\u003euser/pass---\u003eIndexauth/index---\u003eIndexauth/auth()----\u003eIndexhome/index (sucess)\n                                    (check)      |\n                                                 |----\u003eIndexauth/index (fail)\n```\n\nFor mode detailed please read the [LOGIN.md](LOGIN.md) document\n\n## Authors and acknowledgment\n\n* (c) PICCORO Lenz McKAY @mckaygerhard\n\n## License\n\nCC-BY-SA\n\n## status\n\nReleased.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeigniterpower%2Fcodeigniter-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeigniterpower%2Fcodeigniter-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeigniterpower%2Fcodeigniter-login/lists"}