mirror of
https://github.com/bitwarden/server.git
synced 2025-02-02 23:41:21 +01:00
Fix null ref exception for new org SSO (#963)
This commit is contained in:
parent
9848f12638
commit
bf04b9f940
@ -47,7 +47,7 @@ namespace Bit.Portal.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
var ssoConfig = await _ssoConfigRepository.GetByOrganizationIdAsync(orgId.Value);
|
var ssoConfig = await _ssoConfigRepository.GetByOrganizationIdAsync(orgId.Value);
|
||||||
var model = new SsoConfigEditViewModel(ssoConfig, _i18nService, _globalSettings);
|
var model = new SsoConfigEditViewModel(ssoConfig, orgId.Value, _i18nService, _globalSettings);
|
||||||
|
|
||||||
return View(model);
|
return View(model);
|
||||||
}
|
}
|
||||||
|
@ -18,8 +18,8 @@ namespace Bit.Portal.Models
|
|||||||
{
|
{
|
||||||
public SsoConfigEditViewModel() { }
|
public SsoConfigEditViewModel() { }
|
||||||
|
|
||||||
public SsoConfigEditViewModel(SsoConfig ssoConfig, II18nService i18nService,
|
public SsoConfigEditViewModel(SsoConfig ssoConfig, Guid organizationId,
|
||||||
GlobalSettings globalSettings)
|
II18nService i18nService, GlobalSettings globalSettings)
|
||||||
{
|
{
|
||||||
if (ssoConfig != null)
|
if (ssoConfig != null)
|
||||||
{
|
{
|
||||||
@ -41,7 +41,7 @@ namespace Bit.Portal.Models
|
|||||||
configurationData = new SsoConfigurationData();
|
configurationData = new SsoConfigurationData();
|
||||||
}
|
}
|
||||||
|
|
||||||
Data = new SsoConfigDataViewModel(configurationData, globalSettings, ssoConfig.OrganizationId);
|
Data = new SsoConfigDataViewModel(configurationData, globalSettings, organizationId);
|
||||||
BuildLists(i18nService);
|
BuildLists(i18nService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user