El Forum
07-19-2011, 03:17 PM
[eluser]zulubanslee[/eluser]
Ok so I have user create account, create a random string, store it in the database and send the user this link:
http://example.com/login/verifyaccount/s...2829853473
User clicks on the link naturally, but when they do I get a 404 error.
Here is my controller
Ok so I have user create account, create a random string, store it in the database and send the user this link:
http://example.com/login/verifyaccount/s...2829853473
User clicks on the link naturally, but when they do I get a 404 error.
Here is my controller
Code:
$string = $this->uri->segment(3);
$verification= preg_split('/-/', $string);
$username = $verification[0];
$security_string = $verification[1];
$verification_array = array($username, $security_string);
$this->load->model('usersmodel');
$status = $this->usersmodel->verifyaccount($verification_array);
$data['status'] = $status;
$this->load->view('verifyaccountview', $data);