From a3cd217cea1e3ba2c9749451da1f93d36a2ebf9a Mon Sep 17 00:00:00 2001 From: Aisha Tammy Date: Wed, 25 May 2022 12:14:09 -0400 Subject: [PATCH] allow @ in auto username detection Signed-off-by: Aisha Tammy --- cps/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/admin.py b/cps/admin.py index 3c889643..45d69dbc 100755 --- a/cps/admin.py +++ b/cps/admin.py @@ -1994,7 +1994,7 @@ def _handle_edit_user(to_save, content, languages, translations, kobo_support): def extract_user_data_from_field(user, field): - match = re.search(field + r"=([\.\d\s\w-]+)", user, re.IGNORECASE | re.UNICODE) + match = re.search(field + r"=([@\.\d\s\w-]+)", user, re.IGNORECASE | re.UNICODE) if match: return match.group(1) else: