fix: mc account logout on stale (#6986)

This commit is contained in:
Calum H.
2026-08-04 14:29:03 +00:00
committed by GitHub
parent 6715a9c679
commit cfea3aba34
3 changed files with 39 additions and 1 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ pub async fn finish_login(
#[tracing::instrument]
pub async fn get_default_user() -> crate::Result<Option<uuid::Uuid>> {
let state = State::get().await?;
let user = Credentials::get_active(&state.pool).await?;
let user = Credentials::get_default_credential(&state.pool).await?;
Ok(user.map(|user| user.offline_profile.id))
}