diff --git a/Plugin.php b/Plugin.php index 8a9c1ba..61156c5 100644 --- a/Plugin.php +++ b/Plugin.php @@ -45,12 +45,17 @@ public function getPluginAuthor() public function getPluginVersion() { - return '1.0.0'; + return '1.0.1'; } public function getPluginHomepage() { return 'https://github.com/kanboard/plugin-oauth2'; } + + public function getCompatibleVersion() + { + return '>=1.0.37'; + } } diff --git a/README.md b/README.md index 3b598bb..126ac5f 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Author Requirements ------------ -- Kanboard >= 1.0.34 +- Kanboard >= 1.0.37 Installation ------------ @@ -52,6 +52,9 @@ Copy those values in the Kanboard's settings. - **Email Key**: Key used to fetch the user email - **User ID Key**: Key used to fetch the unique user ID +Examples +-------- + Example for Github OAuth2: - **Authorize URL**: `https://github.com/login/oauth/authorize` diff --git a/Template/auth/login.php b/Template/auth/login.php index 99f4ad3..02d6308 100644 --- a/Template/auth/login.php +++ b/Template/auth/login.php @@ -1,6 +1,5 @@
-user->isCurrentUser($user['id'])): ?> - - = $this->url->link(t('Link OAuth2 account'), 'OAuthController', 'handler', array('plugin' => 'OAuth2'), true) ?> +