gnunet-svn
[Top][All Lists]
Advanced

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

[taler-bank] branch master updated: addressing session hint


From: gnunet
Subject: [taler-bank] branch master updated: addressing session hint
Date: Thu, 01 Oct 2020 18:41:55 +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 ead03cc  addressing session hint
ead03cc is described below

commit ead03cc1196ef531832450827480c0a2bd05a94f
Author: MS <ms@taler.net>
AuthorDate: Thu Oct 1 18:41:48 2020 +0200

    addressing session hint
---
 talerbank/app/views.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index c853848..7abf523 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -206,7 +206,7 @@ def get_session_hint(request):
         del request.session["hint"]
     return request.session.get("hint", (True, ""))
 
-def set_session_hint(request, *, success, hint):
+def set_session_hint(request, success, hint):
     if "hint" in request.session:
         LOGGER.warning(f"Overriding a non consumed hint: {hintId}")
         del request.session[hintId]
@@ -1202,7 +1202,7 @@ def confirm_withdrawal(request, withdraw_id):
                 type(hashed_attempt),
                 type(request.POST.get("pin_1")),
             )
-            request.session["captcha_failed"] = True, False, "Wrong CAPTCHA 
answer."
+            set_session_hint(request, success=False, hint="Wrong CAPTCHA 
answer.")
             return redirect("withdraw-confirm", withdraw_id=withdraw_id)
         op.confirmation_done = True
         op.save()

-- 
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]