From: Fulup Ar Foll Date: Wed, 17 Feb 2016 13:42:27 +0000 (+0100) Subject: Allow Multiple TokenCreate when --token="" X-Git-Tag: blowfish_2.0.1~280 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=ba3c77af3bdbc96e09aa27a6b3778162644eb3b1;p=src%2Fapp-framework-binder.git Allow Multiple TokenCreate when --token="" --- 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"));