| @@ 4-12 (lines=9) @@ | ||
| 1 | <?php defined('BASEPATH') OR exit('No direct script access allowed'); |
|
| 2 | ||
| 3 | class Forgot_Password extends No_Auth_Controller { |
|
| 4 | public function __construct() { |
|
| 5 | parent::__construct(); |
|
| 6 | ||
| 7 | $this->load->library('form_validation'); |
|
| 8 | $this->form_validation->set_error_delimiters( |
|
| 9 | $this->config->item('error_start_delimiter', 'ion_auth'), |
|
| 10 | $this->config->item('error_end_delimiter', 'ion_auth') |
|
| 11 | ); |
|
| 12 | } |
|
| 13 | ||
| 14 | public function index() : void { |
|
| 15 | $this->header_data['title'] = 'Forgot Password'; |
|
| @@ 6-16 (lines=11) @@ | ||
| 3 | class Logout extends User_Controller { |
|
| 4 | //we shouldn't care if the user is logged in or not, since ion_auth will take care of things |
|
| 5 | ||
| 6 | public function __construct() { |
|
| 7 | parent::__construct(); |
|
| 8 | ||
| 9 | $this->load->helper('cookie'); |
|
| 10 | ||
| 11 | $this->load->library('form_validation'); |
|
| 12 | $this->form_validation->set_error_delimiters( |
|
| 13 | $this->config->item('error_start_delimiter', 'ion_auth'), |
|
| 14 | $this->config->item('error_end_delimiter', 'ion_auth') |
|
| 15 | ); |
|
| 16 | } |
|
| 17 | ||
| 18 | public function index() : void { |
|
| 19 | $this->header_data['title'] = 'Logout'; |
|
| @@ 4-14 (lines=11) @@ | ||
| 1 | <?php defined('BASEPATH') or exit('No direct script access allowed'); |
|
| 2 | ||
| 3 | class Signup extends No_Auth_Controller { |
|
| 4 | public function __construct() { |
|
| 5 | parent::__construct(); |
|
| 6 | ||
| 7 | $this->load->library('form_validation'); |
|
| 8 | $this->form_validation->set_error_delimiters( |
|
| 9 | $this->config->item('error_start_delimiter', 'ion_auth'), |
|
| 10 | $this->config->item('error_end_delimiter', 'ion_auth') |
|
| 11 | ); |
|
| 12 | ||
| 13 | $this->load->model('Auth_Model', 'Auth'); |
|
| 14 | } |
|
| 15 | ||
| 16 | //Signup is done in multiple parts. |
|
| 17 | // 1. User visits user/signup, inputs email. Site checks if email is new, and if so, sends verify email to said address. |
|