mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 05:06:53 +00:00
chore: Fix most clippy issue, format & typos
This commit is contained in:
1 parent
97c692b052
commit
e75f5cbbed
18 files changed
+363
-409
No files matched your search
@@ -290,13 +290,11 @@ pub fn check(config: &Config) -> Result {
|
||||
}
|
||||
|
||||
if let Some(auth) = &config.auth {
|
||||
if auth.enable_oidc_login {
|
||||
if config.well_known.client.is_none() {
|
||||
return Err!(Config(
|
||||
"auth.enable_oidc_login",
|
||||
"Oidc authentication is enabled but the well-known client is not set."
|
||||
))
|
||||
}
|
||||
if auth.enable_oidc_login && config.well_known.client.is_none() {
|
||||
return Err!(Config(
|
||||
"auth.enable_oidc_login",
|
||||
"Oidc authentication is enabled but the well-known client is not set."
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user