get complete session from login request instead of fetching again
This commit is contained in:
@@ -4,7 +4,7 @@ use crate::domain::warren::{
|
||||
models::{
|
||||
auth_session::requests::FetchAuthSessionResponse,
|
||||
file::{File, FilePath},
|
||||
user::User,
|
||||
user::{LoginUserResponse, User},
|
||||
warren::Warren,
|
||||
},
|
||||
ports::{AuthNotifier, FileSystemNotifier, WarrenNotifier},
|
||||
@@ -122,8 +122,8 @@ impl AuthNotifier for NotifierDebugLogger {
|
||||
tracing::debug!("[Notifier] Registered user {}", user.name());
|
||||
}
|
||||
|
||||
async fn user_logged_in(&self, user: &User) {
|
||||
tracing::debug!("[Notifier] Logged in user {}", user.name());
|
||||
async fn user_logged_in(&self, response: &LoginUserResponse) {
|
||||
tracing::debug!("[Notifier] Logged in user {}", response.user().name());
|
||||
}
|
||||
|
||||
async fn auth_session_created(&self, user_id: &Uuid) {
|
||||
|
||||
Reference in New Issue
Block a user