summaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/users.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/users.rs b/src/api/users.rs
index 68986e7..c8a390d 100644
--- a/src/api/users.rs
+++ b/src/api/users.rs
@@ -5,7 +5,7 @@ use axum::{
response::IntoResponse,
Json,
};
-use axum_extra::{headers::Authorization, routing::Resource, TypedHeader};
+use axum_extra::routing::Resource;
use serde::{Deserialize, Serialize};
use sqlx::FromRow;
use time::OffsetDateTime;
@@ -57,10 +57,10 @@ pub async fn create(
return Err(Error::EmailExists);
}
- // TODO: Move this into a micro service
+ // TODO: Move this into a micro service, possibly behind a feature flag.
let (status, (access, refresh)) = crate::auth::credentials::create(
State(state.clone()),
- TypedHeader(Authorization::basic(&email, &password)),
+ Json(crate::auth::credentials::Credential { password }),
)
.await?;