diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-07 20:14:25 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-07 20:14:25 -0400 |
commit | f8c2a67b3cdbce81bbb661e05411a129b07414ce (patch) | |
tree | 3ac34b919e1fbdbc0801c5d1e90437b3c2532a3d /templates | |
parent | 1b8d2ce36b5d6098b318c5b2f75b0e2752b51ac6 (diff) |
pretty openid login
* openid: Incorporated a fancy openid-selector signin form.
(http://code.google.com/p/openid-selector/)
* openid: Use "openid_identifier" as the form field, as required
by OpenID Authentication v2.0 spec.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/openid-selector.tmpl | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/templates/openid-selector.tmpl b/templates/openid-selector.tmpl index 76c4051ed..393479865 100644 --- a/templates/openid-selector.tmpl +++ b/templates/openid-selector.tmpl @@ -1,30 +1,29 @@ -<script type="text/javascript" src="ikiwiki/openid-selector/jquery.js"></script> -<script type="text/javascript" src="ikiwiki/openid-selector/openid-jquery.js"></script> +<script type="text/javascript" src="ikiwiki/openid/jquery.js"></script> +<script type="text/javascript" src="ikiwiki/openid/openid-jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { - openid.init('openid_url'); + openid.init('openid_identifier'); }); </script> -<TMPL_IF OPENID_ERROR> -<div class="error"><TMPL_VAR OPENID_ERROR></span> -</TMPL_IF> -</div> - <form action="<TMPL_VAR CGIURL>" method="get" id="openid_form"> <input type="hidden" name="do" value="signin" /> <input type="hidden" name="action" value="verify" /> - <div id="openid_choice"> - <p><TMPL_VAR LOGINLABEL>:</p> - <div id="openid_btns"> + <fieldset> + <legend><TMPL_VAR LOGINLABEL></legend> + <div id="openid_choice"> + <div id="openid_btns"> + </div> + <TMPL_IF NONOPENIDURL> + <a href="<TMPL_VAR NONOPENIDURL>">local account</a> + </TMPL_IF> </div> - <TMPL_IF NONOPENIDURL> - <a href="<TMPL_VAR NONOPENIDURL>">local account</a> + <div id="openid_input_area"> + <input id="openid_identifier" name="openid_identifier" type="text" value="<TMPL_VAR OPENID_URL>"/> + <input id="openid_submit" type="submit" value="Login"/> + </div> + <TMPL_IF OPENID_ERROR> + <div class="error"><TMPL_VAR OPENID_ERROR></div> </TMPL_IF> - </div> - - <span id="openid_input_area"> - <input id="openid_url" name="openid_url" type="text" value="<TMPL_VAR OPENID_URL>"/> - <input id="openid_submit" type="submit" value="Login"/> - </span> + </fieldset> </form> |