Skip to content

Commit 05364f1

Browse files
committed
Register not allow name with empty spaces
1 parent 515bd9d commit 05364f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/App/Pages/Admin/Settings/Register.cshtml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public class RegisterModel : AdminPageModel
1313
#region Properties
1414

1515
[Required]
16+
[RegularExpression(@"^\S*$", ErrorMessage = "No white space allowed")]
1617
[BindProperty]
1718
public string UserName { get; set; }
1819

0 commit comments

Comments
 (0)