From 59622ce6255ef1f8f7bf1e8e45a3e746ad4ce7a8 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",