also compare auth type

as the authToken changes with the type this should not be
necessary, but for the sake of completeness put it there.
This commit is contained in:
Stephan Diederich
2013-09-11 16:44:28 +02:00
parent 53f851afc5
commit 3a8802aa20

View File

@@ -565,7 +565,7 @@ static NSString* const kBITAuthenticatorDidSkipOptionalLogin = @"BITAuthenticato
#pragma mark - Property overrides
- (void)setAuthenticationToken:(NSString *)authenticationToken withType:(NSString*) authenticationTokenType {
NSParameterAssert(nil == authenticationToken || nil != authenticationTokenType);
if(![self.authenticationToken isEqualToString:authenticationToken]) {
if(![self.authenticationToken isEqualToString:authenticationToken] || ![self.authenticationTokenType isEqualToString:authenticationTokenType]) {
[self willChangeValueForKey:@"installationIdentification"];
if(nil == authenticationToken) {
[self removeKeyFromKeychain:kBITAuthenticatorAuthTokenKey];