summaryrefslogtreecommitdiff
path: root/templates/openid-selector.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/openid-selector.tmpl')
-rw-r--r--templates/openid-selector.tmpl26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/openid-selector.tmpl b/templates/openid-selector.tmpl
new file mode 100644
index 000000000..06eefebb9
--- /dev/null
+++ b/templates/openid-selector.tmpl
@@ -0,0 +1,26 @@
+<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_identifier', "<TMPL_VAR NONOPENIDURL>");
+});
+</script>
+
+<form action="<TMPL_VAR CGIURL>" method="get" id="openid_form">
+ <fieldset>
+ <legend>Select your account provider</legend>
+
+ <input type="hidden" name="do" value="signin" />
+ <input type="hidden" name="action" value="verify" />
+ <div id="openid_choice">
+ <div id="openid_btns"></div>
+ </div>
+ <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>
+ </fieldset>
+</form>