gnunet-svn
[Top][All Lists]
Advanced

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

[taler-bank] branch master updated: Extend authentication policy.


From: gnunet
Subject: [taler-bank] branch master updated: Extend authentication policy.
Date: Thu, 01 Oct 2020 16:05:03 +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 fb1feab  Extend authentication policy.
fb1feab is described below

commit fb1feab3d475c91755c81bba45f25cbbb6bb25c5
Author: MS <ms@taler.net>
AuthorDate: Thu Oct 1 16:03:18 2020 +0200

    Extend authentication policy.
---
 talerbank/app/views.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/talerbank/app/views.py b/talerbank/app/views.py
index 5ab6813..37f8a5b 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -644,11 +644,12 @@ def serve_public_accounts(request, name=None, page=None):
 # @return FIXME.
 def login_via_headers(view_func):
     def _decorator(request, *args, **kwargs):
+        if request.user.is_authenticated:
+            return True
         user_account = basic_auth(request)
         if not user_account:
             raise LoginFailed("authentication failed")
         return view_func(request, user_account, *args, **kwargs)
-
     return wraps(view_func)(_decorator)
 
 

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