diff options
author | stuconnolly <stuart02@gmail.com> | 2008-12-02 18:10:26 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2008-12-02 18:10:26 +0000 |
commit | ce3f6e3017607cfd58a8af6f17b906f5d8b60f4b (patch) | |
tree | ab099957650e7650600e22da42a804c429da8e47 /KeyChain.h | |
parent | 7864bf91a63ad879ef1c6edc6a10b9dc1f932e12 (diff) | |
download | sequelpro-ce3f6e3017607cfd58a8af6f17b906f5d8b60f4b.tar.gz sequelpro-ce3f6e3017607cfd58a8af6f17b906f5d8b60f4b.tar.bz2 sequelpro-ce3f6e3017607cfd58a8af6f17b906f5d8b60f4b.zip |
Fixed various Keychain issues regarding already existing passwords by checking if an item of the same name and account already exists. This revision also fixes issue #94 by removing the Keychain password first and then the favourite from the array controller.
Diffstat (limited to 'KeyChain.h')
-rw-r--r-- | KeyChain.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -25,13 +25,11 @@ #import <Foundation/Foundation.h> #import <Cocoa/Cocoa.h> - -@interface KeyChain : NSObject { - -} +@interface KeyChain : NSObject - (void)addPassword:(NSString *)password forName:(NSString *)name account:(NSString *)account; - (NSString *)getPasswordForName:(NSString *)name account:(NSString *)account; - (void)deletePasswordForName:(NSString *)name account:(NSString *)account; +- (BOOL)passwordExistsForName:(NSString *)name account:(NSString *)account; @end |