Page 1 of 1

Login After Activation

Posted: 26 Jul 2011, 20:15
by Stoker
Login After Activation
Written by Comkid

Have you seen Login After Register? Well, is it annoying that it only works if there is no activation? Well, now, I present to you, Login After Activation, which now allows members to login after they have activated with the activation link.

Open: includes/ucp/ucp_activate.php
Find:

Code: Select all

}

		if ($config['require_activation'] == USER_ACTIVATION_ADMIN && !$update_password)
Add before:

Code: Select all

$old_session_id = $user->session_id;
			
			$result = $user->session_create($user_row['user_id'], 0, 1, 1);