mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-09 06:28:28 +03:00
Move OAuth2 to core
This commit is contained in:
parent
fdc019e43c
commit
cd8b3936fb
9 changed files with 3 additions and 10 deletions
|
|
@ -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';
|
||||
|
||||
|
|
@ -33,13 +33,6 @@ class LoginGMailPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
$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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue