diff --git a/BTCPayServer/Controllers/AccountController.cs b/BTCPayServer/Controllers/AccountController.cs index 74b345832..118e83ab1 100644 --- a/BTCPayServer/Controllers/AccountController.cs +++ b/BTCPayServer/Controllers/AccountController.cs @@ -454,6 +454,7 @@ namespace BTCPayServer.Controllers if (_Options.DisableRegistration) { // Once the admin user has been created lock subsequent user registrations (needs to be disabled for unit tests that require multiple users). + Logs.PayServer.LogInformation("First admin created, disabling subscription (disable-registration is set to true)"); policies.LockSubscription = true; await _SettingsRepository.UpdateSetting(policies); } diff --git a/BTCPayServer/Controllers/RestApi/Users/UsersController.cs b/BTCPayServer/Controllers/RestApi/Users/UsersController.cs index dd5894815..0564075d9 100644 --- a/BTCPayServer/Controllers/RestApi/Users/UsersController.cs +++ b/BTCPayServer/Controllers/RestApi/Users/UsersController.cs @@ -1,4 +1,5 @@ using System; +using Microsoft.Extensions.Logging; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Threading; @@ -7,6 +8,7 @@ using BTCPayServer.Client.Models; using BTCPayServer.Configuration; using BTCPayServer.Data; using BTCPayServer.Events; +using BTCPayServer.Logging; using BTCPayServer.Security; using BTCPayServer.Security.APIKeys; using BTCPayServer.Services; @@ -146,6 +148,7 @@ namespace BTCPayServer.Controllers.RestApi.Users if (_options.DisableRegistration) { // automatically lock subscriptions now that we have our first admin + Logs.PayServer.LogInformation("First admin created, disabling subscription (disable-registration is set to true)"); policies.LockSubscription = true; await _settingsRepository.UpdateSetting(policies); }