Я делаю забытый пароль в local.So, я не могу понять, правильно это или нет.Забыл пароль - подтвердите на местном (codeigniter)
Могу ли я проверить это с помощью ссылки
<a href='".base_url()."user/pass_confirmation/$encrypted_string/$email'>
Моя controlller функция
function email_check()
{
$email=$this->input->post('email');
$data = array(
'user_email' =>$email,
);
$result = $this->UM->email_verify($data);
if($result)
{
echo $result;
$date = date(Y-m-d);
$string = $email."-".$date;
$encrypted_string = md5($string);
echo $encrypted_string;
$res=$this->UM->insert_key($encrypted_string,$result);
$this->email->from('[email protected]');
$this->email->to($this->input->post('email'));
$this->email->subject('Confirmation to reset password');
$message = "<p>This email has been sent as a request to reset our password</p></br>";
$message .= "<p><a href='".base_url()."user/pass_confirmation/$encrypted_string/$email'>'>Click here </a>if you want to reset your password,
if not, then ignore</p>";
$this->email->message($message);
$this->email->send();
redirect(base_url()."user/forgot_pass");
}
else
{
redirect(base_url()."user/forgot_pass");
}
}
пожалуйста, дайте suggetion для этого
Это не дубликат, я прошу отличные от того, что – robins