From 9df02b7def3aad88ea849fda61d03f6e7f12787b Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 30 Jul 2018 09:43:22 +0200 Subject: [PATCH] no space in user names, but dot, minus and underscores --- Yavsc.Server/Constants.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yavsc.Server/Constants.cs b/Yavsc.Server/Constants.cs index 622e0241..3266a470 100644 --- a/Yavsc.Server/Constants.cs +++ b/Yavsc.Server/Constants.cs @@ -6,7 +6,7 @@ namespace Yavsc { public const string ApplicationName = "Yavsc", CompanyClaimType = "https://schemas.pschneider.fr/identity/claims/Company", - UserNameRegExp = @"^[a-zA-Z][a-zA-Z0-9 ]*$", + UserNameRegExp = @"^[a-zA-Z][a-zA-Z0-9._-]*$", AuthorizePath = "~/authorize", TokenPath = "~/token", LoginPath = "~/signin",