Changeset 2795

Show
Ignore:
Timestamp:
07/16/08 08:48:17 (2 months ago)
Author:
auno
Message:

Fixed to handle auth_type cookie value properly. BugzID:80580

Files:

Legend:

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

    r2764 r2795  
    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 + "';"; 
    237238    if (u.is_authenticated) str += "is_authenticated:'1';"; 
    238239    if (u.profile) str += "profile:'" + mtEscapeJS(u.profile) + "';"; 
     
    259260    var u = {}; 
    260261    var m; 
    261     while (m = s.match(/^((name|url|email|is_authenticated|profile|userpic|sid|is_trusted|is_author|is_banned|can_post|can_comment):'([^']+?)';?)/)) { 
     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):'([^']+?)';?)/)) { 
    262263        s = s.substring(m[1].length); 
    263264        if (m[2].match(/^(is|can)_/)) // boolean fields