Skip to content

Commit

Permalink
Merge pull request #3 from lgvalle/master
Browse files Browse the repository at this point in the history
Api key and secret length
  • Loading branch information
synedra committed Jul 12, 2012
2 parents 69d7aeb + 9202c4f commit e99e1f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion OAuthStarterKit/OAuthLoginView.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
#import <Foundation/NSNotificationQueue.h>
#import "OAuthLoginView.h"


#define API_KEY_LENGTH 12
#define SECRET_KEY_LENGTH 16

//
// OAuth steps for version 1.0a:
//
Expand Down Expand Up @@ -234,7 +238,7 @@ - (void)viewDidLoad

- (void)viewDidAppear:(BOOL)animated
{
if ([apikey length] < 64 || [secretkey length] < 64)
if ([apikey length] < API_KEY_LENGTH || [secretkey length] < SECRET_KEY_LENGTH)
{
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle: @"OAuth Starter Kit"
Expand Down

0 comments on commit e99e1f7

Please sign in to comment.