Login After Activation

Mixed forum with code snippets, guides and styles
Forum rules
Everything in this forum is for everybody
But support only for Donators!
Post Reply
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Login After Activation

Post 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);
Board rules! No PM support
Post Reply