mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 09:04:55 +00:00
fix: mc account logout on stale (#6986)
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user