Rename url to public_cert_url and use app url for realm
[scpubgit/stemmaweb.git] / root / src / auth / login.tt
index 7e3437e..fd60478 100644 (file)
@@ -86,7 +86,7 @@ $(document).ready(function() {
                        data-cookiepolicy="single_host_origin"
                        data-requestvisibleactions="http://schema.org/AddAction"
                        data-scope="https://www.googleapis.com/auth/plus.profile.emails.read"
-                       data-openidrealm="http://sherlock.scsys.co.uk:3000/"
+                       data-openidrealm="[% c.uri_for('/') %]"
                        >
                        </span>
                </span>
@@ -96,6 +96,16 @@ $(document).ready(function() {
                </form>
        </div>
 
+       <h3><a href="#">Sign in with OpenID</a></h3>
+       <div>
+               <p>If you have an account with an <a href="http://openid.net/get-an-openid/" target="_blank">OpenID provider</a> (e.g. WordPress, Blogger, Flickr, Yahoo), you may use it to sign into Stemmaweb.
+               <form class="openid_form" method="post" action="[% c.uri_for_action('/users/login') | html %]" autocomplete="off">
+                       <input type="hidden" name="realm" value="openid"/>
+                       <input type="text" name="openid_identifier" id="openid_input"/>
+                       <input type="submit" class="login_button" id="login_openid" value="Sign in with OpenID"/>
+               </form>
+       </div>
+
 [% UNLESS c.req.param('realm') == 'openid' %]
        <h3><a href="#">Sign in with Stemmaweb</a></h3>
        <div>