Add nullability to web.common
This commit is contained in:
@@ -7,13 +7,13 @@ namespace Umbraco.Cms.Web.Common.Models
|
||||
{
|
||||
[Required]
|
||||
[Display(Name = "User name")]
|
||||
public string Username { get; set; }
|
||||
public string Username { get; set; } = null!;
|
||||
|
||||
[Required]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "Password")]
|
||||
[StringLength(maximumLength: 256)]
|
||||
public string Password { get; set; }
|
||||
public string Password { get; set; } = null!;
|
||||
|
||||
[Display(Name = "Remember me?")]
|
||||
public bool RememberMe { get; set; }
|
||||
|
||||
@@ -10,6 +10,6 @@ namespace Umbraco.Cms.Web.Common.Models
|
||||
/// The path to redirect to when update is successful, if not specified then the user will be
|
||||
/// redirected to the current Umbraco page
|
||||
/// </summary>
|
||||
public string RedirectUrl { get; set; }
|
||||
public string? RedirectUrl { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user