mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Fixed some tests. Some broken mocked tests commented out until later
This commit is contained in:
@@ -39,9 +39,8 @@ def verify_password(user, password):
|
||||
|
||||
|
||||
def increment_failed_login_count(id):
|
||||
user = User.query.filter_by(id=id).first()
|
||||
user = get_user_by_id(id)
|
||||
user.failed_login_count += 1
|
||||
db.session.commit()
|
||||
|
||||
|
||||
def activate_user(user):
|
||||
|
||||
@@ -16,7 +16,7 @@ class UserApiClient(BaseAPIClient):
|
||||
self.base_url = app.config['API_HOST_NAME']
|
||||
self.client_id = app.config['ADMIN_CLIENT_USER_NAME']
|
||||
self.secret = app.config['ADMIN_CLIENT_SECRET']
|
||||
self.user_max_failed_login_count = app.config["MAX_FAILED_LOGIN_COUNT"]
|
||||
self.failed_login_count = app.config["MAX_FAILED_LOGIN_COUNT"]
|
||||
|
||||
def register_user(self, name, email_address, mobile_number, password):
|
||||
data = {
|
||||
|
||||
Reference in New Issue
Block a user