Browse Source

ckdb - auth json reply should be authorise

master
kanoi 10 years ago
parent
commit
351545f1ab
  1. 2
      src/ckdb.h
  2. 2
      src/ckdb_cmd.c

2
src/ckdb.h

@ -52,7 +52,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "0.9.2" #define DB_VERSION "0.9.2"
#define CKDB_VERSION DB_VERSION"-0.500" #define CKDB_VERSION DB_VERSION"-0.501"
#define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__ #define WHERE_FFL_HERE __FILE__, __func__, __LINE__

2
src/ckdb_cmd.c

@ -1803,7 +1803,7 @@ static char *cmd_auth_do(PGconn *conn, char *cmd, char *id, char *by,
} }
snprintf(reply, siz, snprintf(reply, siz,
"ok.auth={\"secondaryuserid\":\"%s\"," "ok.authorise={\"secondaryuserid\":\"%s\","
"\"difficultydefault\":%d}", "\"difficultydefault\":%d}",
users->secondaryuserid, workers->difficultydefault); users->secondaryuserid, workers->difficultydefault);
LOGDEBUG("%s.%s", id, reply); LOGDEBUG("%s.%s", id, reply);

Loading…
Cancel
Save