benedmunds / CodeIgniter-Ion-Auth

Simple and Lightweight Auth System for CodeIgniter
http://benedmunds.com/ion_auth/
MIT License
2.34k stars 1.14k forks source link

Using different email template for normal user and admin #1534

Closed federicovilla closed 3 years ago

federicovilla commented 3 years ago

Using Codeigniter 3 here. In my project I have a section reserved to admin users and a public login area for the registered normal user. If the registered users (normal or admin ) use the forgot password funnction, they receive the same email with the same link to create a new password; I'm wondering if I set different email template/reset password link for different users. In the config file I just see one variable for that. Thanks a lot for any feedback

benedmunds commented 3 years ago

In the config you can set use_ci_email to false, then do the email sending logic in your controller.