Fixed half of warnings having to do with allowing Null string objects. (#791)

This commit is contained in:
newenay
2022-09-08 16:48:47 -04:00
committed by GitHub
parent 60fe2dae60
commit 36dbc2f256
27 changed files with 65 additions and 65 deletions

View File

@@ -8,12 +8,12 @@ public class SetPasswordViewModel
[StringLength(100, ErrorMessage = "The {0} must be at least {2} and at max {1} characters long.", MinimumLength = 6)]
[DataType(DataType.Password)]
[Display(Name = "New password")]
public string NewPassword { get; set; }
public string? NewPassword { get; set; }
[DataType(DataType.Password)]
[Display(Name = "Confirm new password")]
[Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
public string ConfirmPassword { get; set; }
public string? ConfirmPassword { get; set; }
public string StatusMessage { get; set; }
public string? StatusMessage { get; set; }
}