Update to support openid login with google, which uses a known url
Jess Robinson [Tue, 15 May 2012 16:26:33 +0000 (16:26 +0000)]
stemmaweb/root/src/auth/login.tt

index e653632..c6bf88f 100644 (file)
 
        <form method="post" action="[% c.uri_for_action('/users/login').hostless | html %]" autocomplete="off">
 
-    <select name="realm">
-     <option value="default">Local</option>
-     <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>
--->
+    <input type="hidden" name="realm" value="openid"/>
+    <input type="hidden" name="openid_identifier" value="https://www.google.com/accounts/o8/id"/>
+    <input type="submit" value="Sign in with Google"/>
+
+       </form>
+
+       <form method="post" action="[% c.uri_for_action('/users/login').hostless | html %]" autocomplete="off">
+
+    <input type="hidden" name="realm" value="default"/>
+
        [% form.field('username').render %]
        [% form.field('password').render %]