Continue working on CLI Implementation
This commit is contained in:
1 parent
a8f4a061ca
commit
2dfdd6d6a5
7 files changed
+208
-124
No files matched your search
+4
-3
@@ -349,9 +349,10 @@ def add_transaction(amount: float, account_id: str, recipient_account_id: str, o
|
||||
current_client_id, is_admin = get_current_client()
|
||||
if not is_admin and account_id != current_client_id:
|
||||
return format_response(False, "You can only view your own client information."), 403
|
||||
otp_verified = verify_otp(current_client_id, otp_code)
|
||||
if not otp_verified:
|
||||
return format_response(False, "Invalid OTP."), 400
|
||||
if not is_admin:
|
||||
otp_verified = verify_otp(current_client_id, otp_code)
|
||||
if not otp_verified:
|
||||
return format_response(False, "Invalid OTP."), 400
|
||||
|
||||
transaction_id = generate_uuid()
|
||||
account_from = session.query(Account).filter_by(account_id=account_id).one_or_none()
|
||||
|
||||
Reference in new issue
Block a user