[ion auth] Creating the first user - 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: [ion auth] Creating the first user (/showthread.php?tid=67321) |
[ion auth] Creating the first user - n2fole00 - 02-10-2017 Hi, I needed to create a new admin user for an app using ion auth. Could someone give me opinionated feedback, or show me a better way of doing it? Model PHP Code: Controller PHP Code: Thanks RE: [ion auth] Creating the first user - enlivenapp - 02-10-2017 I do something similar in open blog. http://open-blog.org Take a look in installer/controllers/installer... Basically I pulled a couple of the functions from ion auth 2 to properly build and hash the password. The rest is trivial. Sorry for the brevity, I'm on my phone. |