diff options
author | Brion Vibber <brion@pobox.com> | 2010-05-28 16:52:17 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-05-28 16:52:17 -0700 |
commit | 58fe1a597c76dd6737abbe44e7cb7111d3ae3375 (patch) | |
tree | 6d8ddba5ae17df7f2985fc6acc42d5fa40932607 /plugins/OpenID/openidadminpanel.php | |
parent | 3ba165cfab7ce30ade64bf557e9c248de2e07029 (diff) |
OpenID: add option to enable asking for a username to append to the trusted provider's base URL. Good for hooking up with sites like WikiHow, where usernames are appended to a base URL to get a profile URL which is used as the provider.
$config['openid']['append_username'] = true;
or check 'Append a username to base URL' in OpenID admin panel.
Diffstat (limited to 'plugins/OpenID/openidadminpanel.php')
-rw-r--r-- | plugins/OpenID/openidadminpanel.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/OpenID/openidadminpanel.php b/plugins/OpenID/openidadminpanel.php index 063306366..ce4806cc8 100644 --- a/plugins/OpenID/openidadminpanel.php +++ b/plugins/OpenID/openidadminpanel.php @@ -91,6 +91,7 @@ class OpenidadminpanelAction extends AdminPanelAction ); static $booleans = array( + 'openid' => array('append_username'), 'site' => array('openidonly') ); @@ -223,6 +224,15 @@ class OpenIDAdminPanelForm extends AdminForm $this->unli(); $this->li(); + $this->out->checkbox( + 'append_username', _m('Append a username to base URL'), + (bool) $this->value('append_username', 'openid'), + _m('Login form will show the base URL and prompt for a username to add at the end. Use when OpenID provider URL should be the profile page for individual users.'), + 'true' + ); + $this->unli(); + + $this->li(); $this->input( 'required_team', _m('Required team'), |