From 8ce740d9494254a93d11aaf9d3a041b52b45163d Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 12 Nov 2020 10:36:54 +0000 Subject: [PATCH] Fix username regex to allow = character (#1578) --- clientapi/routing/register.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clientapi/routing/register.go b/clientapi/routing/register.go index 756eafe2f..90e9eed38 100644 --- a/clientapi/routing/register.go +++ b/clientapi/routing/register.go @@ -113,7 +113,7 @@ var ( // TODO: Remove old sessions. Need to do so on a session-specific timeout. // sessions stores the completed flow stages for all sessions. Referenced using their sessionID. sessions = newSessionsDict() - validUsernameRegex = regexp.MustCompile(`^[0-9a-z_\-./]+$`) + validUsernameRegex = regexp.MustCompile(`^[0-9a-z_\-=./]+$`) ) // registerRequest represents the submitted registration request.