From 7765941011a78e8062bc76ae3daba9aa56d279c8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 13 May 2015 17:51:29 -0400 Subject: further generalization of openid selector Now template variables can be set to control which login methods are shown --- IkiWiki/Plugin/openid.pm | 2 ++ templates/openid-selector.tmpl | 31 +++++++++++++---- .../ikiwiki/openid/openid-jquery.js | 39 +++++++++++++--------- 3 files changed, 51 insertions(+), 21 deletions(-) diff --git a/IkiWiki/Plugin/openid.pm b/IkiWiki/Plugin/openid.pm index bfd130ace..b8ebbe228 100644 --- a/IkiWiki/Plugin/openid.pm +++ b/IkiWiki/Plugin/openid.pm @@ -89,6 +89,8 @@ sub openid_selector { (defined $openid_url ? (openid_url => $openid_url) : ()), ($real_cgi_signin ? (otherform => $real_cgi_signin->($q, $session, 1)) : ()), otherform_label => $otherform_label, + login_selector_openid => 1, + login_selector_email => 1, ); IkiWiki::printheader($session); diff --git a/templates/openid-selector.tmpl b/templates/openid-selector.tmpl index 03eb5d779..a055203a4 100644 --- a/templates/openid-selector.tmpl +++ b/templates/openid-selector.tmpl @@ -2,14 +2,18 @@ - -