ACTUALLY accept basic auth

This commit is contained in:
Andrea Toska 2025-04-26 20:10:14 +02:00
commit 22fb586c77
No known key found for this signature in database
GPG key ID: 5B3C83807CCBE9A2
3 changed files with 49 additions and 12 deletions

View file

@ -265,7 +265,7 @@ pub fn get_own_profile(user: Auth<false>) -> Ds<Xml<GetOwnProfileData>>{
}
#[get("/v1/api/people/@me/devices/owner")]
pub fn get_device_owner(user: Auth<true>) -> Ds<Xml<GetOwnProfileData>>{
pub fn get_device_owner(user: Auth<false>) -> Ds<Xml<GetOwnProfileData>>{
build_own_profile(user.into())
}
@ -356,6 +356,6 @@ fn build_own_profile(user: User) -> Ds<Xml<GetOwnProfileData>> {
#[put("/v1/api/people/@me/miis/@primary")]
pub fn change_mii() {
// stubbed(tecnically requires auth but this doesnt do anything so theres no harm in not doing auth here rn)
// stubbed(technically requires auth but this doesnt do anything so theres no harm in not doing auth here rn)
}