mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 17:45:32 -04:00
109898688: All codes are valid until one code is used, then they are all marked used.
Fixed the is_active() method on the Users model, if the user was pending they would come back as active, allowing a user to sign in before being active. There is still a problem with the validate_sms_code and validate_email_code method.
This commit is contained in:
@@ -8,7 +8,7 @@ def test_form_should_have_errors_when_duplicate_service_is_added(notifications_a
|
||||
notify_db_session):
|
||||
with notifications_admin.test_request_context(method='POST',
|
||||
data={'service_name': 'some service'}) as req:
|
||||
user = create_test_user()
|
||||
user = create_test_user('active')
|
||||
services_dao.insert_new_service('some service', user)
|
||||
req.session['user_id'] = user.id
|
||||
form = AddServiceForm(req.request.form)
|
||||
|
||||
Reference in New Issue
Block a user