mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 02:42:26 -05:00
Fix bug with user model. Removed is_locked from serialized method.
This commit is contained in:
@@ -56,7 +56,6 @@ class User(db.Model):
|
||||
'id': self.id,
|
||||
'name': self.name,
|
||||
'emailAddress': self.email_address,
|
||||
'locked': self.failed_login_count > current_app.config['MAX_FAILED_LOGIN_COUNT'],
|
||||
'createdAt': self.created_at.strftime(DATETIME_FORMAT),
|
||||
'updatedAt': self.updated_at.strftime(DATETIME_FORMAT),
|
||||
'role': self.role,
|
||||
|
||||
@@ -160,6 +160,5 @@ class User(object):
|
||||
"mobile_number": self.mobile_number,
|
||||
"password_changed_at": self.password_changed_at,
|
||||
"state": self.state,
|
||||
"failed_login_count": self.failed_login_count,
|
||||
"is_locked": self.is_locked()
|
||||
"failed_login_count": self.failed_login_count
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user