From: Joey Hess Date: Wed, 13 May 2015 21:51:29 +0000 (-0400) Subject: further generalization of openid selector X-Git-Tag: 3.20150610~72^2~13 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/7765941011a78e8062bc76ae3daba9aa56d279c8?hp=ab4d9a54677c2c17b186048ba5d86986a161bcef further generalization of openid selector Now template variables can be set to control which login methods are shown --- 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 @@ - -