diff --git a/plugins/README.md b/plugins/README.md index f42178f31..5818231df 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -348,3 +348,21 @@ $Plugin->addHook('hook.name', 'functionName'); ### service.app-delay-start-end no params + +# JavaScript Events + +## mailbox +### mailbox.message-list.selector.go-up +### mailbox.message-list.selector.go-down +### mailbox.message-view.toggle-full-screen +### mailbox.inbox-unread-count +### mailbox.message.show +## audio +### audio.start +### audio.stop +### audio.api.stop +## Misc +### idle +### rl-layout +### rl-view-model + event.detail = the ViewModel class diff --git a/plugins/two-factor-auth/index.php b/plugins/two-factor-auth/index.php index 1582ba5b2..c9e1f4e29 100644 --- a/plugins/two-factor-auth/index.php +++ b/plugins/two-factor-auth/index.php @@ -16,7 +16,6 @@ class TwoFactorAuthPlugin extends \RainLoop\Plugins\AbstractPlugin { $this->UseLangs(true); -// $this->addCss('style.less'); $this->addJs('js/TwoFactorAuthLogin.js'); $this->addJs('js/TwoFactorAuthSettings.js'); @@ -103,8 +102,6 @@ class TwoFactorAuthPlugin extends \RainLoop\Plugins\AbstractPlugin )) ); -// $this->Manager()->Actions()->requestSleep(); - return $this->jsonResponse(__FUNCTION__, $this->getTwoFactorInfo($oAccount)); } @@ -130,7 +127,6 @@ class TwoFactorAuthPlugin extends \RainLoop\Plugins\AbstractPlugin return $this->jsonResponse(__FUNCTION__, false); } -// $this->Manager()->Actions()->setSettingsFromParams($oSettings, 'EnableTwoFactor', 'bool'); $oSettings = $this->Manager()->Actions()->SettingsProvider()->Load($oAccount); if ($this->Manager()->Actions()->HasActionParam('EnableTwoFactor')) { $sValue = $this->GetActionParam('EnableTwoFactor', ''); @@ -171,13 +167,6 @@ class TwoFactorAuthPlugin extends \RainLoop\Plugins\AbstractPlugin $aData = $this->getTwoFactorInfo($oAccount); $sSecret = !empty($aData['Secret']) ? $aData['Secret'] : ''; -// $this->Logger()->WriteDump(array( -// $sCode, $sSecret, $aData, -// $this->TwoFactorAuthProvider($oAccount)->VerifyCode($sSecret, $sCode) -// )); - -// $this->Manager()->Actions()->requestSleep(); - return $this->jsonResponse(__FUNCTION__, $this->TwoFactorAuthProvider($oAccount)->VerifyCode($sSecret, $sCode)); }