Changeset 2846

Show
Ignore:
Timestamp:
07/28/08 02:46:54 (4 months ago)
Author:
fumiakiy
Message:

Removed auth_type key from user information. The functionality has already been provided in is_author and is_author supports LDAP as well. BugId:80763

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-42/default_templates/javascript.mtml

    r2795 r2846  
    235235    if (u.url) str += "url:'" + mtEscapeJS(u.url) + "';"; 
    236236    if (u.email) str += "email:'" + mtEscapeJS(u.email) + "';"; 
    237     if (u.auth_type) str += "auth_type:'" + u.auth_type + "';"; 
    238237    if (u.is_authenticated) str += "is_authenticated:'1';"; 
    239238    if (u.profile) str += "profile:'" + mtEscapeJS(u.profile) + "';"; 
     
    260259    var u = {}; 
    261260    var m; 
    262     while (m = s.match(/^((name|url|email|auth_type|is_authenticated|profile|userpic|sid|is_trusted|is_author|is_banned|can_post|can_comment):'([^']+?)';?)/)) { 
     261    while (m = s.match(/^((name|url|email|is_authenticated|profile|userpic|sid|is_trusted|is_author|is_banned|can_post|can_comment):'([^']+?)';?)/)) { 
    263262        s = s.substring(m[1].length); 
    264263        if (m[2].match(/^(is|can)_/)) // boolean fields 
  • branches/release-42/lib/MT/App.pm

    r2827 r2846  
    993993                userpic => scalar $commenter->userpic_url, 
    994994                profile => "", # profile link url 
    995                 auth_type => ($commenter->auth_type eq 'MT' ? "1" : "0"), 
    996995                is_authenticated => "1", 
    997996                is_trusted => ($commenter->is_trusted($blog_id) ? "1" : "0"), 
     
    11631162 
    11641163    my $timeout; 
    1165     if ( $user->auth_type eq 'MT' ) { 
     1164    if ( $user->type == MT::Author::AUTHOR() ) { 
    11661165        if ($app->param('remember')) { 
    11671166            # 10 years, same as app sign-in 'remember me'