diff --git a/src/Api/Controllers/AuthRequestsController.cs b/src/Api/Controllers/AuthRequestsController.cs index 32c4ef846..82a22f6fe 100644 --- a/src/Api/Controllers/AuthRequestsController.cs +++ b/src/Api/Controllers/AuthRequestsController.cs @@ -89,9 +89,9 @@ public class AuthRequestsController : Controller { 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 c548e9072..14f88f7b2 100644 --- a/src/Notifications/Startup.cs +++ b/src/Notifications/Startup.cs @@ -113,7 +113,7 @@ public class Startup options.ApplicationMaxBufferSize = 2048; options.TransportMaxBufferSize = 4096; }); - endpoints.MapHub("/anonymousHub", options => + endpoints.MapHub("/anonymous-hub", options => { options.ApplicationMaxBufferSize = 2048; options.TransportMaxBufferSize = 4096;