GitHost.io will be shut down on June 1, 2019. At that point this instance will be unreachable and all data will be irrevocably deleted. More details at https://about.gitlab.com/gitlab-hosted/#githost-is-shutting-down-on-june-1st-2019

Commit 7a742a05 authored by Evan Prodromou's avatar Evan Prodromou

show OpenID action in login nav

parent 93239adb
......@@ -87,11 +87,6 @@ class LoginGroupNav extends Widget
$action_name === 'register');
}
$this->action->menuItem(common_local_url('openidlogin'),
_('OpenID'),
_('Login or register with OpenID'),
$action_name === 'openidlogin');
Event::handle('EndLoginGroupNav', array(&$this->action));
}
......
......@@ -75,4 +75,16 @@ class OpenIDPlugin extends Plugin
return true;
}
function onEndLoginGroupNav(&$action)
{
$action_name = $action->trimmed('action');
$action->menuItem(common_local_url('openidlogin'),
_('OpenID'),
_('Login or register with OpenID'),
$action_name === 'openidlogin');
return true;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment