Merge pull request #13 from PedroLiu/modified-log

Will not log user's password now
This commit is contained in:
leebaok 2016-04-05 18:31:19 +08:00
commit 377c09ec81
2 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class loginView(normalView):
@classmethod
def get(self):
if is_authenticated():
#refreshInfo()
refreshInfo()
return redirect(request.args.get('next',None) or '/dashboard/')
if (env.getenv('EXTERNAL_LOGIN') == 'True'):
url = external_generate.external_login_url

View File

@ -26,7 +26,8 @@ class dockletRequest():
@classmethod
def unauthorizedpost(self, url = '/', data = None):
data = dict(data)
logger.info("Docklet Unauthorized Request: data = %s, url = %s" % (data, url))
data_log = {'user': data['user']}
logger.info("Docklet Unauthorized Request: data = %s, url = %s" % (data_log, url))
result = requests.post(endpoint + url, data = data).json()
logger.info("Docklet Unauthorized Response: result = %s, url = %s"%(result, url))
return result