Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Length specified by params and updated Jul'12

  • Loading branch information...
commit 9202c4f4433dd92d3b39457d97a1b48e59c5ff00 1 parent 69d7aeb
Luis González authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 OAuthStarterKit/OAuthLoginView.m
View
6 OAuthStarterKit/OAuthLoginView.m
@@ -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:
//
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.