mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-13 06:54:20 -05:00
Remove flash banner as unncessary
This commit is contained in:
@@ -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'):
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user