From: Loic Baron Date: Wed, 20 Nov 2013 15:50:52 +0000 (+0100) Subject: No user password in logs X-Git-Tag: myslice-0.3-0~113^2~8 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=4805b1478e681cd2304c156a7869225623649c2f No user password in logs --- diff --git a/README b/README index 3a894cc0..7bcba427 100644 --- a/README +++ b/README @@ -9,6 +9,8 @@ See the devel/ subdir for more devel-oriented doc. * REQUIREMENTS is to have python + django (1.5.2) installed django ** should be straightforward ** see devel/django-install.txt in case of trouble +$ apt-get install python-django +$ apt-get install python-django-south * git clone git://git.onelab.eu/myslice.git -- or -- diff --git a/manifold/manifoldapi.py b/manifold/manifoldapi.py index 1ffcacee..700a7654 100644 --- a/manifold/manifoldapi.py +++ b/manifold/manifoldapi.py @@ -63,7 +63,11 @@ class ManifoldAPI: try: if debug: print "====> ManifoldAPI.%s"%repr(),"url",self.url - print "=> auth",self.auth + # No password in the logs + logAuth = self.auth + if 'AuthString' in logAuth: + logAuth['AuthString']="XXX" + print "=> auth",logAuth print "=> args",args,"kwds",kwds annotations = { 'authentication': self.auth