Skip to content

Commit aa44757

Browse files
committed
Fix bug where submit_kba() didn't authenticate first
1 parent c909c53 commit aa44757

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# Versions should comply with PEP440. For a discussion on single-sourcing
1818
# the version across setup.py and the project code, see
1919
# https://packaging.python.org/en/latest/single_source_version.html
20-
version='1.1.1',
20+
version='1.2.1',
2121

2222
description='SynapsePay Rest Native Python Library',
2323

synapse_pay_rest/models/users/virtual_document.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def submit_kba(self):
4848
VirtualDocument: a new instance representing the updated document
4949
"""
5050
user = self.base_document.user
51+
user.authenticate()
5152
response = user.client.users.update(user.id, self.payload_for_kba())
5253
user = user.from_response(user.client, response)
5354
base_doc = [base_doc for base_doc in user.base_documents

0 commit comments

Comments
 (0)