Adapting community auth to an existing database - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7) +--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13) +--- Thread: Adapting community auth to an existing database (/showthread.php?tid=71601) |
Adapting community auth to an existing database - renanrfranca - 09-03-2018 This project is my first professional experience and I'm having a lot of trouble deciding among frameworks, plugins and etc. I found CodeIgniter simpler than Laravel and attractive, but my project requires different access levels, so I went looking for a plugin. After a while, I found "Community Auth" which seems active and secure enough. I went through the installation instructions until a step where I had to run an SQL script. Problem is, I'm working on a relatively simple project that shares a database with a mobile app that's being developed by another team and I don't want to mess with that too much. I understand the need for the creation of tables like "auth_sessions" and such, but the script includes a complete "users" table and I feel like altering our current one on our project could have unwanted effects. I know I can use /config/db_tables.php to rename the users table, but can I map the fields to existing ones? Should I look for another plugin? Should I switch to Laravel? I asked it on StackExchange, but it's probably better to post it here. RE: Adapting community auth to an existing database - skunkbad - 09-03-2018 As it stands when downloaded, if you change the names of the tables in the db_tables config file, and rename the tables in the SQL install script, and assuming you installed Community Auth correctly, everything would work just fine. A better solution for you would be to analyze the existing database, and learn the inner workings of Community Auth, then merge them together. RE: Adapting community auth to an existing database - renanrfranca - 09-03-2018 Hmm, thanks, I'll try that out. |