Merge pull request #13 from PedroLiu/modified-log
Will not log user's password now
This commit is contained in:
commit
377c09ec81
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue