diff --git a/src/Api/Controllers/AuthRequestsController.cs b/src/Api/Controllers/AuthRequestsController.cs index 32c4ef84676c..82a22f6fe265 100644 --- a/src/Api/Controllers/AuthRequestsController.cs +++ b/src/Api/Controllers/AuthRequestsController.cs @@ -89,9 +89,9 @@ public async Task Post([FromBody] AuthRequestCreateReq { throw new BadRequestException("Device type not provided."); } - if (!_globalSettings.PasswordlessAuth.KnownDevicesOnly) + if (_globalSettings.PasswordlessAuth.KnownDevicesOnly) { - var d = await _deviceRepository.GetByIdentifierAsync(_currentContext.DeviceIdentifier); + var d = await _deviceRepository.GetByIdentifierAsync(model.DeviceIdentifier); if (d == null || d.UserId != user.Id) { throw new NotFoundException(); diff --git a/src/Notifications/Startup.cs b/src/Notifications/Startup.cs index c548e9072bd4..14f88f7b24ad 100644 --- a/src/Notifications/Startup.cs +++ b/src/Notifications/Startup.cs @@ -113,7 +113,7 @@ public void Configure( options.ApplicationMaxBufferSize = 2048; options.TransportMaxBufferSize = 4096; }); - endpoints.MapHub("/anonymousHub", options => + endpoints.MapHub("/anonymous-hub", options => { options.ApplicationMaxBufferSize = 2048; options.TransportMaxBufferSize = 4096;