Skip to content

Commit

Permalink
Replace SiteNameValidAttribute with StringLengthAttribute (OrchardCMS…
Browse files Browse the repository at this point in the history
…#13434)

Co-authored-by: Zoltán Lehóczky <[email protected]>
  • Loading branch information
2 people authored and urbanit committed Mar 18, 2024
1 parent 4806fe1 commit 43461e5
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 43461e5

Please sign in to comment.