check if user active properly
This commit is contained in:
parent
9b4a124c08
commit
844202f36b
@ -337,7 +337,7 @@ class Ping(Resource):
|
||||
roles = create_user_roles(profile)
|
||||
update_user(user, profile, roles)
|
||||
|
||||
if not user.active:
|
||||
if not user or not user.active:
|
||||
metrics.send('login', 'counter', 1, metric_tags={'status': FAILURE_METRIC_STATUS})
|
||||
return dict(message='The supplied credentials are invalid'), 403
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user