Skip to content

Conversation

@brianbckim
Copy link

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.

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