gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-bank] branch master updated: withdrawal abort button


From: gnunet
Subject: [taler-bank] branch master updated: withdrawal abort button
Date: Thu, 01 Oct 2020 15:38:22 +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 7352d88  withdrawal abort button
7352d88 is described below

commit 7352d8815916e4da2ee283b9e968b8ff233dc1fd
Author: MS <ms@taler.net>
AuthorDate: Thu Oct 1 15:38:17 2020 +0200

    withdrawal abort button
---
 talerbank/app/templates/withdraw_confirm.html | 5 +++++
 talerbank/app/views.py                        | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/talerbank/app/templates/withdraw_confirm.html 
b/talerbank/app/templates/withdraw_confirm.html
index d9f57de..27be9f1 100644
--- a/talerbank/app/templates/withdraw_confirm.html
+++ b/talerbank/app/templates/withdraw_confirm.html
@@ -38,6 +38,11 @@
   <p>
     What is {{ question }} ?
   </p>
+  <form method="post" action="{{ url('withdraw-confirm', 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>
+
   <form method="post" action="{{ url('withdraw-confirm', withdraw_id) }}" 
class="pure-form">
     <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" />
     <input type="text" name="pin_0" value="" autocomplete="off" autofocus />
diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 8e8d9a9..c909d59 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -1226,7 +1226,6 @@ def confirm_withdrawal(request, withdraw_id):
         set_profile_hint(
             request, success=True, failure=False, hint="Withdrawal successful!"
         )
-
         request.session["just_withdrawn"] = True
 
         return redirect("profile")
@@ -1236,6 +1235,7 @@ def confirm_withdrawal(request, withdraw_id):
             question=question,
             hashed_answer=hashed_answer,
             withdraw_id=withdraw_id,
+            account_id=request.user.username,
             amount=op.amount.stringify(settings.TALER_DIGITS),
             exchange=op.selected_exchange_account.user,
         )

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]