Welcome Guest, Not a member yet? Register   Sign In
Redirect to Dashboard after Successful registration
#1
Wink 

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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB