Redirect to Dashboard after Successful registration - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Redirect to Dashboard after Successful registration (/showthread.php?tid=82611) |
Redirect to Dashboard after Successful registration - bleras - 07-29-2022 Hello forum!! Im dealing with a thing thats make my head blow. I need to login automatically my users after they Register in my form. i have this 2 functions to login and register. public function ajax_login() { $email = post("email"); $password = post("password"); $remember = post("remember"); $this->user_manager_model->login($email, $password, $remember); } public function ajax_signup() { $fullname = post("fullname"); $email = post("email"); $password = post("password"); $timezone = post("timezone"); $confirm_password = post("confirm_password"); $terms = post("terms"); $this->user_manager_model->signup($fullname, $email, $password, $confirm_password, $timezone, $terms); } How i can do that? Thanks |