Skip to content

Commit

Permalink
trigger error for wrong data
Browse files Browse the repository at this point in the history
  • Loading branch information
joequant committed May 1, 2023
1 parent 0cd69f7 commit f0134c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/serializers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ def validate_kyc(self, user: User) -> None:
return
if not UserKYC.valid_for_user(user):
msg = _('Unable to log in due to KYC restrictions.')
raise AccountNotActive(
raise ValidationError(
{
'message': msg,
'type': 'account_block'
'type': 'wrong_data'
}
)

Expand Down

0 comments on commit f0134c9

Please sign in to comment.