mirror of
https://github.com/aljazceru/pubky-core.git
synced 2026-01-02 22:04:31 +01:00
feat(homeserver): log cookies on auth
This commit is contained in:
@@ -15,6 +15,7 @@ use tower_cookies::{
|
||||
};
|
||||
|
||||
use pubky_common::{crypto::random_bytes, session::Session, timestamp::Timestamp};
|
||||
use tracing::debug;
|
||||
|
||||
use crate::{
|
||||
database::tables::{
|
||||
@@ -138,6 +139,8 @@ pub async fn signin(
|
||||
}
|
||||
cookie.set_http_only(true);
|
||||
|
||||
debug!(?cookie, "Created, saved and sending a new Session cookie");
|
||||
|
||||
cookies.add(cookie);
|
||||
|
||||
wtxn.commit()?;
|
||||
|
||||
Reference in New Issue
Block a user