Changed iPhone photo size to 60 as 120 was making scrolling slow. Added 2 step verification to the account setup.
This commit is contained in:
parent
62734d7fef
commit
bd37a26ddb
@ -34,7 +34,7 @@ NSString * const MGMCContactID = @"contactid";
|
||||
NSString * const MGMCGoogleContactsUser = @"MGMCGoogleContactsUser";
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
const float MGMABPhotoSizePX = 120.0;
|
||||
const float MGMABPhotoSizePX = 60.0;
|
||||
#else
|
||||
const float MGMABPhotoSizePX = 64.0;
|
||||
#endif
|
@ -19,7 +19,7 @@
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@class WebView, MGMUser, MGMInstance, MGMURLConnectionManager, MGMSIPAccount;
|
||||
@class WebView, MGMUser, MGMInstance, MGMVoiceVerify, MGMURLConnectionManager, MGMSIPAccount;
|
||||
|
||||
extern NSString * const MGMSGoogleVoice;
|
||||
extern NSString * const MGMSGoogleContacts;
|
||||
@ -68,6 +68,7 @@ extern NSString * const MGMSIPDefaultDomain;
|
||||
IBOutlet NSTextField *S7StatusField;
|
||||
MGMUser *S7CheckUser;
|
||||
MGMInstance *S7CheckInstance;
|
||||
MGMVoiceVerify *S7VerifyWindow;
|
||||
MGMURLConnectionManager *S7ConnectionManager;
|
||||
#if MGMSIPENABLED
|
||||
MGMSIPAccount *S7CheckSIPAccount;
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#import "MGMAccountSetup.h"
|
||||
#import "MGMVoiceUser.h"
|
||||
#import "MGMVoiceVerify.h"
|
||||
#import "MGMSIPUser.h"
|
||||
#import <VoiceBase/VoiceBase.h>
|
||||
#import <MGMUsers/MGMUsers.h>
|
||||
@ -326,6 +327,8 @@ NSString * const MGMSIPDefaultDomain = @"proxy01.sipphone.com";
|
||||
S7CheckInstance = [[MGMInstance instanceWithUser:S7CheckUser delegate:self isCheck:YES] retain];
|
||||
}
|
||||
- (void)loginError:(NSError *)theError {
|
||||
[S7VerifyWindow release];
|
||||
S7VerifyWindow = nil;
|
||||
[S7CheckUser remove];
|
||||
[S7CheckUser release];
|
||||
S7CheckUser = nil;
|
||||
@ -336,7 +339,13 @@ NSString * const MGMSIPDefaultDomain = @"proxy01.sipphone.com";
|
||||
step = 8;
|
||||
[self displayStep];
|
||||
}
|
||||
- (void)loginVerificationRequested {
|
||||
[S7VerifyWindow release];
|
||||
S7VerifyWindow = [[MGMVoiceVerify verifyWithInstance:S7CheckInstance] retain];
|
||||
}
|
||||
- (void)loginSuccessful {
|
||||
[S7VerifyWindow release];
|
||||
S7VerifyWindow = nil;
|
||||
if (S7CheckUser!=nil) {
|
||||
[accountsCreated addObject:S7CheckUser];
|
||||
MGMUser *contactsUser = [MGMUser createUserWithName:[S4EmailField stringValue] password:[S4PasswordField stringValue]];
|
||||
|
Loading…
Reference in New Issue
Block a user