From b0d1262258e12906e365ee07e464cb2ec817b515 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 19 Nov 2017 13:47:38 +0100 Subject: [PATCH] Server: create_token returns the ident of the new token --- server/cmd.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5