Archived
1
0

Hotfix for register email

This commit is contained in:
Marcel 2018-10-28 16:35:31 +01:00
parent 048e069af5
commit 40c9c16cb3

View File

@ -124,14 +124,14 @@
$this->email->to($email); $this->email->to($email);
$this->email->subject('Aktiviere deinen Account und lege so richtig los auf KingOfDog.eu'); $this->email->subject('Aktiviere deinen Account und lege so richtig los auf KingOfDog.eu');
$this->email->message($this->load->view('emails/register', ['username' => $username, 'emailHash' => md5($email), 'activationKey' => $activation_key], false)); $this->email->message($this->load->view('emails/register', ['username' => $username, 'emailHash' => md5($email), 'activationKey' => $activation_key], true));
$this->email->send(); $this->email->send();
// TODO: TRANSLATE // TODO: TRANSLATE
$message = "Hallo, bitte aktiviere deinen Account: " . base_url('activate/' . md5($email) . '/' . $activation_key); // $message = "Hallo, bitte aktiviere deinen Account: " . base_url('activate/' . md5($email) . '/' . $activation_key);
// TODO: Send email // TODO: Send email
mail($email, "Aktiviere deinen Account und lege so richtig los auf KingOfDog.eu", $message); // mail($email, "Aktiviere deinen Account und lege so richtig los auf KingOfDog.eu", $message);
// Send notification // Send notification
$createdUser = $this->db->query('SELECT ID FROM users WHERE username = ?', [$username])->result_array(); $createdUser = $this->db->query('SELECT ID FROM users WHERE username = ?', [$username])->result_array();