mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Issue #1258 - Follow up to Part 8: Ifdef MailNews OAuth2 Support
This commit is contained in:
parent
6a2e0c0286
commit
fe11727f3d
1 changed files with 2 additions and 0 deletions
|
|
@ -5626,6 +5626,7 @@ void nsImapProtocol::InitPrefAuthMethods(int32_t authMethodPrefValue)
|
|||
|
||||
}
|
||||
|
||||
#ifdef MOZ_MAILNEWS_OAUTH2
|
||||
if (m_prefAuthMethods & kHasXOAuth2Capability)
|
||||
mOAuth2Support = new mozilla::mailnews::OAuth2ThreadHelper(aServer);
|
||||
|
||||
|
|
@ -5633,6 +5634,7 @@ void nsImapProtocol::InitPrefAuthMethods(int32_t authMethodPrefValue)
|
|||
if (m_prefAuthMethods & kHasXOAuth2Capability &&
|
||||
(!mOAuth2Support || !mOAuth2Support->SupportsOAuth2()))
|
||||
m_prefAuthMethods &= ~kHasXOAuth2Capability;
|
||||
#endif
|
||||
|
||||
NS_ASSERTION(m_prefAuthMethods != kCapabilityUndefined,
|
||||
"IMAP: InitPrefAuthMethods() didn't work");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue