Skip to content

Commit

Permalink
Replace SiteNameValidAttribute with StringLengthAttribute (#13434)
Browse files Browse the repository at this point in the history
Co-authored-by: Zoltán Lehóczky <[email protected]>
  • Loading branch information
hishamco and Piedone authored Jan 22, 2024
1 parent 03491d0 commit ecbd622
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 28 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
using Microsoft.AspNetCore.Mvc.ModelBinding;
using OrchardCore.Data;
using OrchardCore.Recipes.Models;
using OrchardCore.Setup.Annotations;

namespace OrchardCore.Setup.ViewModels
{
public class SetupViewModel
{
[Required]
[SiteNameValid(maximumLength: 70)]
[StringLength(70)]
public string SiteName { get; set; }

public string Description { get; set; }
Expand Down

0 comments on commit ecbd622

Please sign in to comment.