Skip to content

fix(groups): trim whitespace in "Add user to group" email (Closes #1387)#1427

Closed
brianbckim wants to merge 4 commits intookpy:masterfrom
brianbckim:fix/strip-whitespace-email
Closed

fix(groups): trim whitespace in "Add user to group" email (Closes #1387)#1427
brianbckim wants to merge 4 commits intookpy:masterfrom
brianbckim:fix/strip-whitespace-email

Conversation

@brianbckim
Copy link
Copy Markdown

Issue: Closes #1387

Problem
Adding a user to a group failed when the email had leading/trailing spaces.

Fix
Add a WTForms filter to strip whitespace before validation in the staff add-member form.
(Optional) Defensive strip in the controller if applied.

Test
tests/test_staff_group_add_trim.py:

Env
pyenv Python 3.7.17; tests via python -m pytest.

@brianbckim brianbckim closed this Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strip whitespace from "Add user to group" text entry

1 participant