Box::pin authenticate function

This commit is contained in:
Maurus Decimus
2026-04-24 19:58:03 +02:00
parent 96795b0cf2
commit e73b65c5a3
9 changed files with 58 additions and 73 deletions

View File

@@ -38,8 +38,7 @@ pub struct Username {
impl Server {
pub async fn authenticate(&self, req: &AuthRequest) -> trc::Result<AccessToken> {
match self
.route_auth_request(req)
match Box::pin(self.route_auth_request(req))
.await
.and_then(|token| token.assert_has_permission(Permission::Authenticate))
{

View File

@@ -430,7 +430,7 @@ impl Http {
}
#[cfg(any(feature = "dev_mode", feature = "test_mode"))]
let server_name = "127.0.0.1:8080";
let server_name = "127.0.0.1";
Http {
url_https: if !bp.registry.is_recovery_mode() {