Closed kresnasatya closed 7 years ago
I dont see you echoing "password_change_successful" anywhere in this code. Maybe I'm not following?
Yes, I didn't do that because that the words "password_change_successful" is already exist on ion_auth_lang.php. I try again to add ion_auth_lang.php to Auth controller so like this:
$this->load->lang(array('auth', 'ion_auth'));
but, it doesn't work to show the messange "password change successful" when user logout and direct
to login page by system.
I think, you can test with your own ion auth on section change_password. Thank you.
On Dec 17, 2016 12:22 AM, "Ben Edmunds" notifications@github.com wrote:
I dont see you echoing "password_change_successful" anywhere in this code. Maybe I'm not following?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/benedmunds/CodeIgniter-Ion-Auth/issues/1009#issuecomment-267631921, or mute the thread https://github.com/notifications/unsubscribe-auth/AKlcMjPj1L1papmLQaD-BJM3KjYD_qdmks5rIrqxgaJpZM4LPDg- .
Wait a moment. I think the message "password successful change" because $this->logout(); run after I set the message and it destroy the session flashdata.
I have one alternative, just let show "password successful change" on page "change_password" without logout. Thank you Mr. Benedmuns.
Mr. Benedmunds, I just test change password method as below:
After I succesfull change password, it must be show message 'Password Successfully Changed' which I check on ion_auth_lang.php is exist on $lang['password_change_successful'] . But, it didn't show message like that in login page.
This is the login view:
I do a silly things like adding ion_auth lang in Auth controller because the
$lang['password_change_successful']
is located on ion_auth_lang.php :$this->lang->load(array('auth', 'ion_auth'));
But, it doesn't work.I hope, I can get your answer about this case to make this ion auth more better and used by others developer. Thanks a lot
Note: That code overall based on your repository (branch 2), I just copy controller, models, and anything else to CodeIgniter and test it.