mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 05:06:53 +00:00
use config.server_name as title in OIDC pages
This commit is contained in:
1 parent
144036f58b
commit
cadcbd7d49
2 files changed
+4
-11
No files matched your search
@@ -41,11 +41,8 @@ pub(crate) async fn authorize(
|
||||
// Redirect to the login page if no token or token not known.
|
||||
let hostname = services
|
||||
.config
|
||||
.well_known
|
||||
.client
|
||||
.as_ref()
|
||||
.map(|s| s.host_str().expect("well-known client should have a host"));
|
||||
let hostname = hostname.unwrap_or("Continuwuity");
|
||||
.server_name
|
||||
.host();
|
||||
match oauth.authorization_header() {
|
||||
| None => {
|
||||
return Ok(oidc_login_form(hostname, &query));
|
||||
|
||||
Reference in new issue
Block a user