Skip to content

Commit eb7c865

Browse files
committed
fixed bug with test_password
1 parent 50b5d77 commit eb7c865

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Payload_Type/poseidon/poseidon/agent_code/test_password/test_password_helper_darwin.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
ODSession* session = [ODSession defaultSession];
1010
ODNode *node = [ODNode nodeWithSession:session type:kODNodeTypeAuthentication error:nil];
1111
NSError *err = NULL;
12-
ODRecord *userRecord = [node recordWithRecordType:kODRecordTypeUsers name:[[NSString alloc] initWithFormat:@"%s", "test"] attributes:nil error:&err];
12+
ODRecord *userRecord = [node recordWithRecordType:kODRecordTypeUsers name:[[NSString alloc] initWithFormat:@"%s", user] attributes:nil error:&err];
1313
if(err != NULL){
1414
return [err.localizedDescription UTF8String];
1515
}
16-
bool success = [userRecord verifyPassword:[[NSString alloc] initWithFormat:@"%s", "password"] error:&err];
16+
bool success = [userRecord verifyPassword:[[NSString alloc] initWithFormat:@"%s", password] error:&err];
1717
if(err != NULL){
1818
return [err.localizedDescription UTF8String];
1919
}

0 commit comments

Comments
 (0)