mirror of
https://github.com/bitwarden/server
synced 2026-02-24 16:42:52 +00:00
Enhance MasterPasswordPolicyData with XML documentation for properties
Added XML documentation comments for MinComplexity and MinLength properties to clarify their purpose and constraints. This improves code readability and provides better context for developers using the model.
This commit is contained in:
@@ -4,9 +4,16 @@ namespace Bit.Core.AdminConsole.Models.Data.Organizations.Policies;
|
||||
|
||||
public class MasterPasswordPolicyData : IPolicyDataModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Minimum password complexity score (0-4). Null indicates no complexity requirement.
|
||||
/// </summary>
|
||||
[JsonPropertyName("minComplexity")]
|
||||
[Range(0, 4)]
|
||||
public int? MinComplexity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Minimum password length (12-128). Null indicates no minimum length requirement.
|
||||
/// </summary>
|
||||
[JsonPropertyName("minLength")]
|
||||
[Range(12, 128)]
|
||||
public int? MinLength { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user