gnunet-svn
[Top][All Lists]
Advanced

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

[taler-bank] branch master updated: fix return type


From: gnunet
Subject: [taler-bank] branch master updated: fix return type
Date: Thu, 01 Oct 2020 16:17:49 +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 0eb8a0e  fix return type
0eb8a0e is described below

commit 0eb8a0e808203be5db95677f970822e54c2b0db9
Author: MS <ms@taler.net>
AuthorDate: Thu Oct 1 16:17:45 2020 +0200

    fix return type
---
 talerbank/app/views.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 37f8a5b..268e85f 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -645,8 +645,7 @@ def serve_public_accounts(request, name=None, page=None):
 def login_via_headers(view_func):
     def _decorator(request, *args, **kwargs):
         if request.user.is_authenticated:
-            return True
-        user_account = basic_auth(request)
+            return view_func(request, user_account, *args, **kwargs)
         if not user_account:
             raise LoginFailed("authentication failed")
         return view_func(request, user_account, *args, **kwargs)

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