Log in with username/password: lyceum/lyceum

Changeset 617

Show
Ignore:
Timestamp:
03/30/06 14:20:04 (2 years ago)
Author:
jjb
Message:

Explicitly setting the cookie domain, preceded by a dot, seems to make the maindomain cookie relevant to all subdomains.

Viewing /profile still needs to be cleaned up.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/config/wp-config-sample.php

    r616 r617  
    1515// See doc/Installation.txt and doc/Subdomains.txt for more info 
    1616define('SUBDOMAINS', false); 
    17 define('MAINDOMAIN', 'blogs.example.com'); 
     17//define('MAINDOMAIN', 'blogs.example.com'); 
     18//define('COOKIEDOMAIN', '.'. MAINDOMAIN); 
    1819 
    1920//log files 
  • trunk/src/lib/wp-includes/pluggable-functions.php

    r614 r617  
    197197      $error = "<strong>Error</strong>: An administrator cannot log in from your ip address: $ip"; 
    198198      return false; 
    199    } elseif(1==$login->user_locked) { 
     199   } elseif(1==$login->user_locked) { //TODO need to return false right? -jjb 
    200200      $error = "Your account is locked"; 
    201201   } else { 
  • trunk/src/lib/wp-includes/template-functions-general.php

    r616 r617  
    3232 
    3333   if ('' == $user_ID) 
    34       $link = '<a href="' . get_settings('home') . '/wp-login.php">' . __('Login') . '</a>'; 
    35    else 
    36       $link = '<a href="' . get_settings('home') . '/wp-login.php?action=logout">' . __('Logout') . '</a>'; 
     34      $link = '<a href="' . get_settings('siteurl') . '/login">' . __('Login') . '</a>'; 
     35   else 
     36      $link = '<a href="' . get_settings('siteurl') . '/wp-login.php?action=logout">' . __('Logout') . '</a>'; 
    3737 
    3838   echo apply_filters('loginout', $link); 
Log in with username/password: lyceum/lyceum