Complete support for openid and new built-in openid_identifier
Jess Robinson [Tue, 15 May 2012 11:12:22 +0000 (11:12 +0000)]
lib/stemmaweb.pm
root/src/auth/login.tt

index 6cf1729..5a84bf3 100644 (file)
@@ -89,7 +89,7 @@ __PACKAGE__->config(
         action_after_login => '/index',
         send_register_email => 0,
         realm => 'openid',
-        login_fields => { openid => [], # qw/openid_identifier/],
+        login_fields => { openid => [qw/openid_identifier/],
                           default => [qw/username password/],
         },
     },
index 6af2f51..e653632 100644 (file)
      <option value="openid">OpenID</option>
     </select>
 
+    [% form.field('openid_identifier').render %]
+<!--
 <div id="field-openid-identifier">
 <label for="openid_identifier">OpenID login/url</label>
 <input type="text" name="openid_identifier" id="openid_identifier"/><br>
 </div>
-
-<!--
-<div style="display:none">
+-->
        [% form.field('username').render %]
        [% form.field('password').render %]
-</div>
--->
+
     [% form.field('remember').render %]
        [% form.field('submit').render %]