[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-bank] branch master updated: get logged in username
From: |
gnunet |
Subject: |
[taler-bank] branch master updated: get logged in username |
Date: |
Thu, 01 Oct 2020 15:49:06 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository bank.
The following commit(s) were added to refs/heads/master by this push:
new 51bcae6 get logged in username
51bcae6 is described below
commit 51bcae67d2405f1af73a95fbd543d514307c117d
Author: MS <ms@taler.net>
AuthorDate: Thu Oct 1 15:49:02 2020 +0200
get logged in username
---
talerbank/app/templates/withdraw_confirm.html | 2 +-
talerbank/app/views.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/talerbank/app/templates/withdraw_confirm.html
b/talerbank/app/templates/withdraw_confirm.html
index 27be9f1..829ed09 100644
--- a/talerbank/app/templates/withdraw_confirm.html
+++ b/talerbank/app/templates/withdraw_confirm.html
@@ -38,7 +38,7 @@
<p>
What is {{ question }} ?
</p>
- <form method="post" action="{{ url('withdraw-confirm', user_id, withdraw_id)
}}" class="pure-form">
+ <form method="post" action="{{ url('access-api-withdrawal-abort', user_id,
withdraw_id) }}" class="pure-form">
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" />
<input type="submit" value="Abort" class="pure-button pure-button-primary"
/>
</form>
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index c909d59..5ab6813 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -1218,7 +1218,7 @@ def confirm_withdrawal(request, withdraw_id):
op.save()
wire_transfer(
op.amount,
- BankAccount.objects.get(user=request.user),
+ BankAccount.objects.get(user=request.user.get_username()),
op.selected_exchange_account,
op.selected_reserve_pub,
)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-bank] branch master updated: get logged in username,
gnunet <=