Remove flash banner as unncessary

This commit is contained in:
Imdad Ahad
2016-09-06 16:53:53 +01:00
parent 998d33e283
commit 91c878a80e
2 changed files with 0 additions and 3 deletions

View File

@@ -38,7 +38,6 @@ def sign_in():
user = user_api_client.get_user_by_email_or_none(form.email_address.data)
user = _get_and_verify_user(user, form.password.data)
if user and user.state == 'pending':
flash("You haven't verified your email or mobile number yet. Check your email for a verification link.")
return redirect(url_for('main.resend_email_verification'))
if user and session.get('invited_user'):

View File

@@ -73,8 +73,6 @@ def test_should_return_redirect_when_user_is_pending(app_,
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
assert page.h1.string == 'Sign in'
flash_banner = page.find('div', class_='banner-dangerous').string.strip()
assert flash_banner == "You haven't verified your email or mobile number yet. Check your email for a verification link." # noqa
assert response.status_code == 200