aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2016-02-17 14:42:27 +0100
committerFulup Ar Foll <fulup@iot.bzh>2016-02-17 14:42:27 +0100
commitba3c77af3bdbc96e09aa27a6b3778162644eb3b1 (patch)
tree8cf5359221e26adbdc65f90dcb550e2f5118fdc2
parent3da6e9fad4c6788098cf425369fb3d7860cb824f (diff)
Allow Multiple TokenCreate when --token=""
-rw-r--r--src/rest-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rest-api.c b/src/rest-api.c
index 0751ede8..c85fbea1 100644
--- a/src/rest-api.c
+++ b/src/rest-api.c
@@ -132,7 +132,7 @@ STATIC AFB_error callPluginApi(AFB_request *request, int plugidx, void *context)
switch(plugin->apis[idx].session) {
- case AFB_SESSION_CREATE:
+ case AFB_SESSION_CREATE:
if (clientCtx->token[0] != '\0' && request->config->token[0] != '\0') {
request->errcode=MHD_HTTP_UNAUTHORIZED;
json_object_object_add(jcall, "status", json_object_new_string ("exist"));