Noticed that the api was being called when running the unit tests.

This also lead me to find the the failed_login_in count was always returning 0.
This commit is contained in:
Rebecca Law
2016-03-11 11:47:21 +00:00
parent f81dccc513
commit 58c748e703
3 changed files with 2 additions and 19 deletions

View File

@@ -10,7 +10,7 @@ class User(UserMixin):
self._mobile_number = fields.get('mobile_number')
self._password_changed_at = fields.get('password_changed_at')
self._permissions = fields.get('permissions')
self._failed_login_count = 0
self._failed_login_count = fields.get('failed_login_count')
self._state = fields.get('state')
self.max_failed_login_count = max_failed_login_count