From 418055a640db08066e5e8008075b564bd4d8a088 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 9 Apr 2024 19:41:33 +0200 Subject: [PATCH] Forgot to save new tokens... --- virtweb_backend/src/api_tokens.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/virtweb_backend/src/api_tokens.rs b/virtweb_backend/src/api_tokens.rs index 9d8bab3..91aef97 100644 --- a/virtweb_backend/src/api_tokens.rs +++ b/virtweb_backend/src/api_tokens.rs @@ -130,6 +130,8 @@ pub async fn create(t: &NewToken) -> anyhow::Result<(Token, TokenPrivKey)> { delete_after_inactivity: t.delete_after_inactivity, }; + token.save()?; + Ok((token, priv_key)) }