Skip to content

Commit

Permalink
Update to the latest version of KB
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed May 8, 2016
1 parent 8165c1e commit 8e93555
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class Plugin extends Base
{
public function initialize()
{
$this->dispatcher->addListener('app.bootstrap', array($this, 'onBootstrap'));
$this->dispatcher->addListener(AuthenticationManager::EVENT_SUCCESS, array($this, 'onLoginSuccess'));

$this->authenticationManager->register(new GoogleAuthProvider($this->container));
Expand All @@ -31,9 +30,9 @@ public function initialize()
$this->template->hook->attach('template:user:create-remote:form', 'GoogleAuth:user/create_remote');
}

public function onBootstrap()
public function onStartup()
{
Translator::load($this->config->getCurrentLanguage(), __DIR__.'/Locale');
Translator::load($this->language->getCurrentLanguage(), __DIR__.'/Locale');
}

public function onLoginSuccess(AuthSuccessEvent $event)
Expand Down Expand Up @@ -72,7 +71,7 @@ public function getPluginAuthor()

public function getPluginVersion()
{
return '1.0.1';
return '1.0.2';
}

public function getPluginHomepage()
Expand Down
4 changes: 2 additions & 2 deletions Template/config/integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<?= $this->form->label(t('Google Client Secret'), 'google_client_secret') ?>
<?= $this->form->password('google_client_secret', $values) ?>
<p class="form-help"><a href="https://github.com/kanboard/plugin-google-auth/blob/master/README.md"><?= t('Help on Google authentication') ?></a></p>
<p class="form-help"><a href="https://kanboard.net/plugin/google-auth"><?= t('Help on Google authentication') ?></a></p>

<div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions Test/PluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public function testPlugin()
{
$plugin = new Plugin($this->container);
$this->assertSame(null, $plugin->initialize());
$this->assertSame(null, $plugin->onStartup());
$this->assertNotEmpty($plugin->getPluginName());
$this->assertNotEmpty($plugin->getPluginDescription());
$this->assertNotEmpty($plugin->getPluginAuthor());
Expand Down

0 comments on commit 8e93555

Please sign in to comment.