diff options
| author | mo khan <mo@mokhan.ca> | 2013-07-14 15:05:55 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-07-14 15:05:55 -0600 |
| commit | b4051750b51ad5b9ee0574fa5ceaa71649c19e95 (patch) | |
| tree | 4bd7aee7c4e3532f259c29b18f525559fefa0ae0 /cakeside-ios | |
| parent | 3573bab922a5ae63288267eefa0a030d8286e08d (diff) | |
add keychain constants
Diffstat (limited to 'cakeside-ios')
| -rw-r--r-- | cakeside-ios/cakeside-ios-Prefix.pch | 7 | ||||
| -rw-r--r-- | cakeside-ios/controllers/LoginViewController.m | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/cakeside-ios/cakeside-ios-Prefix.pch b/cakeside-ios/cakeside-ios-Prefix.pch index 7e47aca..796d29f 100644 --- a/cakeside-ios/cakeside-ios-Prefix.pch +++ b/cakeside-ios/cakeside-ios-Prefix.pch @@ -12,3 +12,10 @@ #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #endif + + +// KeyChain defs +#define KEYCHAIN_ACCOUNT @"cakeside" +#define KEYCHAIN_USER_NAME @"KEYCHAIN_USER_NAME" +#define KEYCHAIN_USER_PASSWORD @"KEYCHAIN_USER_PASSWORD" +#define KEYCHAIN_API_TOKEN @"KEYCHAIN_API_TOKEN"
\ No newline at end of file diff --git a/cakeside-ios/controllers/LoginViewController.m b/cakeside-ios/controllers/LoginViewController.m index 5c0d897..11baea4 100644 --- a/cakeside-ios/controllers/LoginViewController.m +++ b/cakeside-ios/controllers/LoginViewController.m @@ -7,6 +7,7 @@ // #import "LoginViewController.h" +#import "SSKeychain.h" @interface LoginViewController ()<UITextFieldDelegate> @@ -29,7 +30,7 @@ // self.contentView.$y = 0; // prepopulate username/password with stored information - /* + NSError *error; NSString *username = [SSKeychain passwordForService:KEYCHAIN_USER_NAME account:KEYCHAIN_ACCOUNT error:&error]; if (error) { username = nil; } @@ -44,7 +45,7 @@ { self.passwordTextBox.text = password; } - */ + } |
