Well... I'm out of ideas on what to write about. Do you have any ideas? Please, write me in any comment section you find, and I will do my best to tell you about that particular subject

Step 3.4 – Creating the profile page with Ion Auth

Created at: February 5, 2015; Last update: March 11, 2016

(Created at: February 05, 2015; Las update: March 11, 2016

All good and well: we’ve done our login and logout pages, we’ve facilitated the administration of users and groups using Ion Auth. But what about the profile page? What if the user wants to change his/her credentials or our default password (which, shockingly, is… “password”).

For this it would be nice to have a profile page, where the user can do his/her own changes. We will not allow the user to change its own email or username, even if it is an admin. We should let this part in the hands of the other administrators (but you can do whatever you want in the end).

For the profile page we will create a profile() method inside the application/controllers/admin/User.php controller.

So let’s first modify the top menu (application/views/templates/_parts/admin_master_header_view.php) in order to put a link to the profile page.

User class extends on MY_Controller not Admin_Controller, $this->data[‘current_user’], $this->data[‘current_user_menu’] and $this->data[‘page_title’] variables don’t exist in __construct() function. Instead they are in profile() function, but $this->data[‘user’] exist and $this->data[‘current_user’] not exist. Is it mistake?

Hi Mr. Avenirer,
Thank you for your nice and very useful ion auth library, it is awesome.
Would you please tell me that which method have used for hashing the password after the user is registered in DB and is it secure or strongly secure?
Have you used Bcrypt and salt and if yes why it takes very less time to generate the hash?
Thanks

Hello. You can’t be a normal user and an admin user at the same time. There is only one session between your website and your browser. You could however create some sort of library that could do such a thing.

Great tutorial but you have inconsistent folder naming, in previous tutorial you create application/views/admin/users/ but in this tutorial you change that become application/views/admin/user/ missing one character.