diff options
author | 2014-10-07 00:52:54 -0700 | |
---|---|---|
committer | 2014-10-07 00:52:54 -0700 | |
commit | b12aa2f5e74f30ee39882fe3089fd557b630803f (patch) | |
tree | 4196a9382564a69adc0762fe37f3a51cefeb3693 /src/objc | |
parent | 2ab2483dacc9db6bc9ea31d216de7b093268363a (diff) |
Fixed #876: added application specific password
Diffstat (limited to 'src/objc')
-rw-r--r-- | src/objc/abstract/MCOConstants.h | 3 | ||||
-rw-r--r-- | src/objc/utils/NSError+MCO.mm | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/objc/abstract/MCOConstants.h b/src/objc/abstract/MCOConstants.h index 85c92414..2752c34b 100644 --- a/src/objc/abstract/MCOConstants.h +++ b/src/objc/abstract/MCOConstants.h @@ -402,6 +402,9 @@ typedef NS_ENUM(NSInteger, MCOErrorCode) { MCOErrorNoRecipient, /** IMAP: Error when a noop operation fails.*/ MCOErrorNoop, + /** IMAP: Error when the password has been entered but second factor + authentication is enabled: an application specific password is required. */ + MCOErrorGmailApplicationSpecificPasswordRequired, /** The count of all errors */ MCOErrorCodeCount, }; diff --git a/src/objc/utils/NSError+MCO.mm b/src/objc/utils/NSError+MCO.mm index 09482d6b..b6b73f6d 100644 --- a/src/objc/utils/NSError+MCO.mm +++ b/src/objc/utils/NSError+MCO.mm @@ -48,6 +48,7 @@ static NSString * MCOLocalizedDescriptionTable[] = { @"A sender is required to send message", /** MCOErrorNoSender */ @"A recipient is required to send message", /** MCOErrorNoRecipient */ @"An error occured while performing a No-Op operation.", /** MCOErrorNoop */ + @"An application specific password is required", /** MCOErrorGmailApplicationSpecificPasswordRequired */ }; @implementation NSError (MCO) |