Skip to content

Commit

Permalink
Move OAuth2 to core
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Apr 24, 2024
1 parent fdc019e commit cd8b393
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions plugins/login-gmail/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class LoginGMailPlugin extends \RainLoop\Plugins\AbstractPlugin
const
NAME = 'GMail OAuth2',
VERSION = '2.36',
RELEASE = '2024-03-27',
REQUIRED = '2.36.0',
RELEASE = '2024-04-23',
REQUIRED = '2.36.1',
CATEGORY = 'Login',
DESCRIPTION = 'GMail IMAP, Sieve & SMTP login using RFC 7628 OAuth2';

Expand All @@ -33,13 +33,6 @@ public function Init() : void
$this->addHook('smtp.before-login', 'clientLogin');
$this->addHook('sieve.before-login', 'clientLogin');

// set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__);
spl_autoload_register(function($classname){
if (str_starts_with($classname, 'OAuth2\\')) {
include_once __DIR__ . strtr("\\{$classname}", '\\', DIRECTORY_SEPARATOR) . '.php';
}
});

$this->addPartHook('LoginGMail', 'ServiceLoginGMail');

// Prevent Disallowed Sec-Fetch Dest: document Mode: navigate Site: cross-site User: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*
* @author Pierrick Charron <pierrick@webstart.fr>
* @author Anis Berejeb <anis.berejeb@gmail.com>
* @version 1.3.1-dev
* @version 1.3.1
*/
namespace OAuth2;

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit cd8b393

Please sign in to comment.