1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-09 04:22:45 +03:00

Actually verify the CAPTCHA during registration

This commit is contained in:
Quentin Gliech
2024-05-13 14:39:36 +02:00
parent 0e270d5449
commit 4d9d8a8ba3
5 changed files with 314 additions and 2 deletions

View File

@@ -112,6 +112,18 @@ impl UrlBuilder {
}
}
/// Site public hostname
///
/// # Panics
///
/// Panics if the base URL does not have a host
#[must_use]
pub fn public_hostname(&self) -> &str {
self.http_base
.host_str()
.expect("base URL must have a host")
}
/// HTTP base
#[must_use]
pub fn http_base(&self) -> Url {