Skip to content
Advertisement

Otp is not post in database

after user submit mail id otp will be sent to that email id but my code isn’t working it post the email id in database but not the otp. Please can any one help?

Controller Code auth.php

JavaScript

Model code user_model.php

JavaScript

Advertisement

Answer

In your controller you are actually passing three arguments to the $this->user_model->insert() instead of two. Second argument needs to be an array.

Try try updating following line with this:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement