Initial commit

This commit is contained in:
2024-09-01 06:20:49 +03:00
parent bd61f5d591
commit 9263c396a1
81 changed files with 1494 additions and 1521 deletions

View File

@@ -20,6 +20,14 @@ pub async fn finish_login(
crate::state::login_finish(code, flow, &state.pool).await
}
#[tracing::instrument]
pub async fn offline_auth(
name: &str
) -> crate::Result<Credentials> {
let state = State::get().await?;
crate::state::offline_auth(name, &state.pool).await
}
#[tracing::instrument]
pub async fn get_default_user() -> crate::Result<Option<uuid::Uuid>> {
let state = State::get().await?;