mirror of
https://github.com/bitwarden/server.git
synced 2024-12-26 17:37:36 +01:00
adminsettings to docker env setup
This commit is contained in:
parent
40dff2cd6e
commit
7f250a4e74
@ -1,6 +1,7 @@
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Bit.Core.Utilities;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
||||
@ -19,7 +20,7 @@ namespace Bit.Core.Identity
|
||||
CancellationToken cancellationToken = default(CancellationToken))
|
||||
{
|
||||
var usersCsv = _configuration["adminSettings:admins"];
|
||||
if(string.IsNullOrWhiteSpace(usersCsv))
|
||||
if(!CoreHelpers.SettingHasValue(usersCsv))
|
||||
{
|
||||
return Task.FromResult<IdentityUser>(null);
|
||||
}
|
||||
|
@ -61,6 +61,7 @@ namespace Bit.Setup
|
||||
["globalSettings__mail__smtp__port"] = "587",
|
||||
["globalSettings__mail__smtp__useDefaultCredentials"] = "false",
|
||||
["globalSettings__disableUserRegistration"] = "false",
|
||||
["adminSettings__admins"] = string.Empty,
|
||||
};
|
||||
|
||||
if(forInstall && !Push)
|
||||
|
Loading…
Reference in New Issue
Block a user