Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch to force kyc on login #130

Merged
merged 3 commits into from
Sep 8, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
trigger error for wrong data
joequant committed May 1, 2023
commit f0134c9b56d9a636837e9c76fa3e72d0ffa5181f
4 changes: 2 additions & 2 deletions core/serializers/auth.py
Original file line number Diff line number Diff line change
@@ -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'
}
)