blob: b9e703108f6e20db92177adfaed3210c0ae41e74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#import "SetThingsAuthenticationKeyAction.h"
NS_ASSUME_NONNULL_BEGIN
@implementation SetThingsAuthenticationKeyAction
- (QSObject *)setAuthenticationKey:(QSObject *)directObject
{
NSString *contents = [directObject displayName];
if (contents) {
[KeychainHelper setAuthenticationKey:contents];
} else {
[KeychainHelper deleteAuthenticationKey];
}
return directObject;
}
@end
NS_ASSUME_NONNULL_END
|