Skip to content

Commit

Permalink
status code added to confirmed_only view
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-malekpour committed May 22, 2020
1 parent cf371ec commit 149b267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ def decorator(*args, **kwargs):
if not user:
return {'error': 'User not found.'}, 404
if not user.Confirmed:
return {'error': 'Your account is not activated.'}
return {'error': 'Your account is not activated.'}, 400
return function(*args, **kwargs)
return decorator

0 comments on commit 149b267

Please sign in to comment.