1
0
mirror of https://github.com/bitwarden/server synced 2025-12-20 02:03:46 +00:00

[Reset Password] Enterprise Policy (#1315)

* [Reset Password] Enterprise Policy

* Created UI for policy/edit policy // Updated TODOs for policy dependent checks

* Updated reset password data model field name to be more descriptive

* Update title to Master Password Reset

* Updated PoliciesModel, Policy Model spacing, and strings
This commit is contained in:
Vincent Salucci
2021-05-12 14:47:00 -05:00
committed by GitHub
parent a47b86a995
commit ae38c33e05
9 changed files with 111 additions and 19 deletions

View File

@@ -51,8 +51,7 @@ namespace Bit.Portal.Controllers
}
var policies = await _policyRepository.GetManyByOrganizationIdAsync(orgId.Value);
var selectedOrgUseSso = _enterprisePortalCurrentContext.SelectedOrganizationDetails.UseSso;
return View(new PoliciesModel(policies, selectedOrgUseSso));
return View(new PoliciesModel(policies, _enterprisePortalCurrentContext.SelectedOrganizationDetails));
}
[HttpGet("/edit/{type}")]
@@ -138,6 +137,7 @@ namespace Bit.Portal.Controllers
case PolicyType.PersonalOwnership:
case PolicyType.DisableSend:
case PolicyType.SendOptions:
case PolicyType.ResetPassword:
break;
case PolicyType.SingleOrg: