gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-bank] branch master updated: + logging


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: + logging
Date: Mon, 10 Jul 2017 11:54:44 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 82128e4  + logging
82128e4 is described below

commit 82128e428231021ba13daebf8957d921fcd10fd4
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Jul 10 11:54:26 2017 +0200

    + logging
---
 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 d509fc2..ea177b0 100644
--- a/talerbank/app/views.py
+++ b/talerbank/app/views.py
@@ -447,7 +447,7 @@ def auth_and_login(request):
     password = request.META.get("HTTP_X_TALER_BANK_PASSWORD")
     logger.info("Trying to log '%s/%s' in" % (username, password))
     if not username or not password:
-        logger.error("Unknown user")
+        logger.error("user or password not given")
         return False
     return django.contrib.auth.authenticate(username=username,
                                             password=password)
@@ -474,6 +474,7 @@ def add_incoming(request):
     user_account = auth_and_login(request)
 
     if not user_account:
+        logger.error("authentication failed")
         return JsonResponse(dict(error="authentication failed"),
                             status=401)
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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