View Single Post
  #2  
Old 08-20-2004, 11:27 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

edit include/register.php find:

Code:
if($usertype=="C" or ($usertype=="B" and $login=="")) { $auto_login = true; $login = $uname; $login_type = $usertype; $logged = ""; }

And replace with:

Code:
if($usertype=="C" or ($usertype=="B" and $login=="")) { if($newuser_info["membership"]==$newuser_info["pending_membership"]) { $auto_login = true; $login = $uname; $login_type = $usertype; $logged = ""; } }

This will keep anyone from auto-logging in once they register until you set the membership.

Next include/login.php find:

Code:
if(!empty($user_data) && $password==text_decrypt($user_data["password"]) && !empty($password)) {

replace with:

Code:
if(!empty($user_data) && $password==text_decrypt($user_data["password"]) && !empty($password) && $user_data["membership"]==$user_data["pending_membership"]) {

This will keep users from loggin in with the newly created username/passwords until the membership is set.

Kudos!
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote