From: Martin Mares Date: Sun, 19 Nov 2017 12:47:38 +0000 (+0100) Subject: Server: create_token returns the ident of the new token X-Git-Tag: v0.9~10 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b0d1262258e12906e365ee07e464cb2ec817b515;p=subauth.git Server: create_token returns the ident of the new token --- diff --git a/server/cmd.c b/server/cmd.c index 98092b4..8959d07 100644 --- a/server/cmd.c +++ b/server/cmd.c @@ -267,6 +267,7 @@ static void cmd_create_token(struct client *c) struct auth_token *at = auth_create_token(aa); char *tok = auth_set_token_generated(at, comment, c->pool); set_string(c, c->reply, "token", tok); + set_string(c, c->reply, "ident", at->ident); msg(L_INFO, "Created token: login=<%s> zone=<%s> id=<%s>", aa->user->login, aa->zone->name, at->ident);