We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7cff1a commit e033a4aCopy full SHA for e033a4a
controllers/auth.php
@@ -212,9 +212,10 @@ function forgot_password()
212
$identity = $this->db->where('email', $this->input->post('email'))->limit('1')->get($config_tables['users'])->row();
213
214
if(empty($identity)) {
215
- $this->session->set_flashdata('message', 'No record of that email address.');
+ $this->ion_auth->set_message('forgot_password_email_not_found');
216
+ $this->session->set_flashdata('message', $this->ion_auth->messages());
217
redirect("auth/forgot_password", 'refresh');
- }
218
+ }
219
220
//run the forgotten password method to email an activation code to the user
221
$forgotten = $this->ion_auth->forgotten_password($identity->{$this->config->item('identity', 'ion_auth')});
0 commit comments