log: make sure to log login timestamp
This commit is contained in:
@@ -17,11 +17,9 @@ pub async fn login_action<R>(
|
||||
user_id: u32,
|
||||
action: impl AsyncFnOnce(UserLoginApiResp) -> R,
|
||||
) -> Result<R, ApiError> {
|
||||
let login = UserLoginApi::new(user_id);
|
||||
let login = UserLoginApi::new(user_id, true);
|
||||
let date_time = login.date_time;
|
||||
|
||||
info!("login unix timestamp: {date_time}");
|
||||
|
||||
let login_resp: UserLoginApiResp =
|
||||
Sdgb1_50::request(&client, APIMethod::UserLoginApi, user_id, login).await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user