Henry Lyne (henrylyne) wrote in changelog,
Henry Lyne
henrylyne
changelog

[livejournal] r13838: LJSUP-1946 Allow logged-in OpenID users ...

Committer: henrylyne
LJSUP-1946 Allow logged-in OpenID users to comment like Registered Users if they have validated an email address.

U   trunk/cgi-bin/talklib.pl
Modified: trunk/cgi-bin/talklib.pl
===================================================================
--- trunk/cgi-bin/talklib.pl	2008-05-05 22:32:03 UTC (rev 13837)
+++ trunk/cgi-bin/talklib.pl	2008-05-05 22:32:19 UTC (rev 13838)
@@ -1390,14 +1390,27 @@
 
         if (LJ::OpenID->consumer_enabled) {
             # OpenID - At some point we will include "trusted"
-            $ret .= "<tr valign='middle'>";
-            $ret .= "<td align='center'><img src='$LJ::IMGPREFIX/openid-profile.gif' onclick='handleRadios(3);' /></td>";
-            $ret .= "<td align='center'>(  )</td>";
-            $ret .= "<td align='left' colspan='2'><font color='#c0c0c0'><b>OpenID</b></font>";
+            if (defined $oid_identity && $remote->{statusvis} eq 'A') {
+                $ret .= "<tr valign='middle' id='oidli' name='oidli'>";
+                $ret .= "<td align='center'><img src='$LJ::IMGPREFIX/openid-profile.gif' onclick='handleRadios(4);' /></td><td align='center'><input type='radio' name='usertype' value='openid_cookie' id='talkpostfromoidli'" .
+                    $whocheck->('openid_cookie') . "/>";
+                $ret .= "</td><td align='left'><b><label for='talkpostfromoid' onclick='handleRadios(4);return false;'>OpenID identity:</label></b> ";
 
-            $ret .= LJ::help_icon_html("openid", " ");
+                $ret .= "<i>" . $remote->display_name . "</i>";
 
-            $ret .= "</td></tr>\n";
+                $ret .= $BML::ML{'.opt.willscreen'} if $screening;
+                $ret .= "</td></tr>\n";
+            } else {
+                # logged out
+                $ret .= "<tr valign='middle'>";
+                $ret .= "<td align='center'><img src='$LJ::IMGPREFIX/openid-profile.gif' onclick='handleRadios(3);' /></td>";
+                $ret .= "<td align='center'>(  )</td>";
+                $ret .= "<td align='left' colspan='2'><font color='#c0c0c0'><b>OpenID</b></font>";
+
+                $ret .= LJ::help_icon_html("openid", " ");
+
+                $ret .= "</td></tr>\n";
+            }
         }
     }
 

Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 4 comments