Box::pin authenticate function
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user