mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
rename auth type to UDIDProvider
naming can be hard - thanks @therealkerni
This commit is contained in:
parent
2d97ac7cf7
commit
1504b2d9d9
@ -13,7 +13,7 @@
|
|||||||
typedef NS_ENUM(NSUInteger, BITAuthenticatorAuthType) {
|
typedef NS_ENUM(NSUInteger, BITAuthenticatorAuthType) {
|
||||||
BITAuthenticatorAuthTypeEmail,
|
BITAuthenticatorAuthTypeEmail,
|
||||||
BITAuthenticatorAuthTypeEmailAndPassword,
|
BITAuthenticatorAuthTypeEmailAndPassword,
|
||||||
BITAuthenticatorAuthTypeWebbased,
|
BITAuthenticatorAuthTypeUDIDProvider,
|
||||||
//TODO: add Facebook?
|
//TODO: add Facebook?
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ static NSString* const kBITAuthenticatorLastAuthenticatedVersionKey = @"BITAuthe
|
|||||||
case BITAuthenticatorAuthTypeEmailAndPassword:
|
case BITAuthenticatorAuthTypeEmailAndPassword:
|
||||||
params = @{@"auid" : self.authenticationToken};
|
params = @{@"auid" : self.authenticationToken};
|
||||||
break;
|
break;
|
||||||
case BITAuthenticatorAuthTypeWebbased:
|
case BITAuthenticatorAuthTypeUDIDProvider:
|
||||||
params = @{@"udid" : self.authenticationToken};
|
params = @{@"udid" : self.authenticationToken};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -210,7 +210,7 @@ static NSString* const kBITAuthenticatorLastAuthenticatedVersionKey = @"BITAuthe
|
|||||||
case BITAuthenticatorAuthTypeEmail:
|
case BITAuthenticatorAuthTypeEmail:
|
||||||
viewController.requirePassword = NO;
|
viewController.requirePassword = NO;
|
||||||
break;
|
break;
|
||||||
case BITAuthenticatorAuthTypeWebbased:
|
case BITAuthenticatorAuthTypeUDIDProvider:
|
||||||
viewController.requirePassword = NO;
|
viewController.requirePassword = NO;
|
||||||
viewController.showsLoginViaWebButton = YES;
|
viewController.showsLoginViaWebButton = YES;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user