mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-01 16:06:59 +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) {
|
||||
BITAuthenticatorAuthTypeEmail,
|
||||
BITAuthenticatorAuthTypeEmailAndPassword,
|
||||
BITAuthenticatorAuthTypeWebbased,
|
||||
BITAuthenticatorAuthTypeUDIDProvider,
|
||||
//TODO: add Facebook?
|
||||
};
|
||||
|
||||
|
@ -136,7 +136,7 @@ static NSString* const kBITAuthenticatorLastAuthenticatedVersionKey = @"BITAuthe
|
||||
case BITAuthenticatorAuthTypeEmailAndPassword:
|
||||
params = @{@"auid" : self.authenticationToken};
|
||||
break;
|
||||
case BITAuthenticatorAuthTypeWebbased:
|
||||
case BITAuthenticatorAuthTypeUDIDProvider:
|
||||
params = @{@"udid" : self.authenticationToken};
|
||||
break;
|
||||
}
|
||||
@ -210,7 +210,7 @@ static NSString* const kBITAuthenticatorLastAuthenticatedVersionKey = @"BITAuthe
|
||||
case BITAuthenticatorAuthTypeEmail:
|
||||
viewController.requirePassword = NO;
|
||||
break;
|
||||
case BITAuthenticatorAuthTypeWebbased:
|
||||
case BITAuthenticatorAuthTypeUDIDProvider:
|
||||
viewController.requirePassword = NO;
|
||||
viewController.showsLoginViaWebButton = YES;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user