Remove existing whitespace stripping code

Since we’re doing this globally, we don’t need to handle it in a custom
way for the sign in form (and it’s much nicer encapsulated like this).

Also added some more extensive tests in this commit.
This commit is contained in:
Chris Hill-Scott
2017-12-11 16:09:19 +00:00
parent 70badae575
commit d0d230f119
3 changed files with 12 additions and 8 deletions

View File

@@ -30,8 +30,6 @@ def sign_in():
return redirect(url_for('main.choose_service'))
form = LoginForm()
if form.email_address.data:
form.email_address.data = form.email_address.data.strip()
if form.validate_on_submit():