summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorMadelyn Olson <matolson@amazon.com>2019-12-17 07:15:04 +0000
committerMadelyn Olson <matolson@amazon.com>2019-12-17 07:15:04 +0000
commit67aa527b222a9bd72f7c6f1d58abb3d30776aea5 (patch)
tree3dc0c28e67b5d3b2f7e364f6807f0342f7b88227 /src/modules
parent034dcf185cfaa844154e422d26a9ec7afa314189 (diff)
downloadredis-67aa527b222a9bd72f7c6f1d58abb3d30776aea5.tar.gz
Added some documentation and fixed a test
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/helloacl.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/modules/helloacl.c b/src/modules/helloacl.c
index a6cc68a04..6766c0a58 100644
--- a/src/modules/helloacl.c
+++ b/src/modules/helloacl.c
@@ -1,4 +1,5 @@
-/* ACL API example - An example of performing custom password authentication
+/* ACL API example - An example for performing custom synchronous and
+ * asynchronous password authentication.
*
* -----------------------------------------------------------------------------
*
@@ -32,11 +33,6 @@
#define REDISMODULE_EXPERIMENTAL_API
#include "../redismodule.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <string.h>
-#include <strings.h>
#include <pthread.h>
#include <unistd.h>
@@ -51,7 +47,7 @@ int RevokeCommand_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, in
REDISMODULE_NOT_USED(argc);
if (global_auth_client_id) {
- RedisModule_DisconnectClient(ctx, global_auth_client_id);
+ RedisModule_DeauthenticateAndCloseClient(ctx, global_auth_client_id);
return RedisModule_ReplyWithSimpleString(ctx, "OK");
} else {
return RedisModule_ReplyWithError(ctx, "Global user currently not used");