mirror of
https://github.com/bitwarden/server.git
synced 2026-06-01 12:26:46 -05:00
* feat(admin-console): Add InjectOrganizationAttribute and OrganizationModelBinder for automatic organization parameter binding * feat(admin-console): Introduce BindOrganizationAttribute and OrganizationModelBinder for organization parameter binding with unit tests * feat(admin-console): Update GetResetPasswordDetails to use BindOrganization for organization parameter * fix(admin-console): Correct organization ID check in GetResetPasswordDetails method to use bound organization * Refactor OrganizationUsersControllerTests to use bound organization in GetResetPasswordDetails method - Updated test cases to pass the organization directly instead of relying on repository calls. - Ensured that the tests correctly assert NotFoundException when the organization user does not match the bound organization. - Improved clarity in test setup by explicitly binding the organization to the method calls. * Fix UTF-8 BOM issue in BindOrganizationAttribute.cs * Add integration tests for OrganizationUsersController's BindOrganization functionality - Introduced OrganizationUsersControllerBindOrganizationTests to validate the behavior of the GET reset-password-details endpoint. - Implemented tests for successful retrieval of reset password details, handling of non-existent organization users, and cases where the user belongs to a different organization. - Ensured comprehensive coverage of scenarios to verify correct status responses and organization binding logic.
5.6 KiB
5.6 KiB