CodeIgniter Forums
Error Unable to De-Activate Account when registering a new user - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7)
+--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13)
+--- Thread: Error Unable to De-Activate Account when registering a new user (/showthread.php?tid=72894)



Error Unable to De-Activate Account when registering a new user - n2fole00 - 02-25-2019

After updating to Ion-Auth 3, I'm getting the error
Code:
Unable to De-Activate Account
when trying to register a new user.

Here is the code I'm calling.

PHP Code:
$user_id $this->ion_auth->register($username$password$email$additional_data$group_ids);    
// $user_id returns false when doing a var_dump

// update the user requirements
if($user_id !== FALSE) {
 
 $this->session->set_flashdata('message',$this->ion_auth->messages()); // message confirming user was created 
 
 $this->requirements_model->update_user_requirements($this->input->post('requirements'), $user_id);

else {
 
 $this->session->set_flashdata('message'$this->ion_auth->errors());


Before I last updated (which was about two years ago) everything was working fine. I'm using email as the identity and I've followed the update guide in github.

What is causing that error? The message doesn't seem to be relevant. There are no users in the database with the email I'm trying to register.

Thanks.