Forgot to save new tokens...
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2024-04-09 19:41:33 +02:00
parent 0ee2c41f3c
commit 418055a640

View File

@ -130,6 +130,8 @@ pub async fn create(t: &NewToken) -> anyhow::Result<(Token, TokenPrivKey)> {
delete_after_inactivity: t.delete_after_inactivity, delete_after_inactivity: t.delete_after_inactivity,
}; };
token.save()?;
Ok((token, priv_key)) Ok((token, priv_key))
} }