Forgot to save new tokens...
This commit is contained in:
parent
0ee2c41f3c
commit
418055a640
@ -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))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user