Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thepaperpilot committed Dec 8, 2023
1 parent e0cabff commit 3361faf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion crates/api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,3 @@ mod tests {
assert!(totp.is_ok());
}
}

4 changes: 2 additions & 2 deletions crates/api/src/local_user/oauth_callback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub async fn oauth_callback(
) -> HttpResponse {
let site_view = SiteView::read_local(&mut context.pool()).await;

if !site_view.is_ok() {
if !site_view.is_ok() {
return HttpResponse::Found()
.append_header(("Location", "/login?err=internal"))
.finish();
Expand Down Expand Up @@ -60,7 +60,7 @@ pub async fn oauth_callback(
{
external_auth.issuer.to_string()
} else {
format!("{}/.well-known/openid-configuration", external_auth.issuer)
format!("{}/.well-known/openid-configuration", external_auth.issuer)
};
let res = context.client().get(discovery_endpoint).send().await;
if !res.is_ok() {
Expand Down
1 change: 0 additions & 1 deletion crates/api_common/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -881,4 +881,3 @@ mod tests {
);
}
}

0 comments on commit 3361faf

Please sign in to comment.