Commit 0a4abb8c authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

IMAP: fix IMAP configuration through Account Wizard

parent 9ce31b24
......@@ -79,10 +79,10 @@ function testOk( arg )
imapRes.setOption( "UseDefaultIdentity", false );
imapRes.setOption( "AccountIdentity", identity.uoid() );
if ( server == "imap.gmail.com" ) {
imapRes.setOption( "AuthenticationType", 9 ); // XOAuth2
imapRes.setOption( "Authentication", 9 ); // XOAuth2
arg = "ssl";
} else {
imapRes.setOption( "AuthenticationType", 7 ); // ClearText
imapRes.setOption( "Authentication", 7 ); // ClearText
}
if ( arg == "ssl" ) {
// The ENUM used for authentication (in the imap resource only)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment