mirror of https://github.com/tp4a/teleport
parent
797ab4bd8f
commit
f16178e0e3
|
@ -259,6 +259,19 @@ class DoSaveCfgHandler(TPBaseJsonHandler):
|
||||||
else:
|
else:
|
||||||
return self.write_json(err)
|
return self.write_json(err)
|
||||||
|
|
||||||
|
#增加urlprotocol的配置
|
||||||
|
if 'global' in args:
|
||||||
|
processed = True
|
||||||
|
_cfg = args['global']
|
||||||
|
_url_proto = _cfg['url_proto']
|
||||||
|
|
||||||
|
err = system_model.save_config(self, '更新全局设置', 'global', _cfg)
|
||||||
|
if err == TPE_OK:
|
||||||
|
tp_cfg().sys.glob.url_proto = _url_proto
|
||||||
|
else:
|
||||||
|
return self.write_json(err)
|
||||||
|
|
||||||
|
|
||||||
if 'password' in args:
|
if 'password' in args:
|
||||||
processed = True
|
processed = True
|
||||||
_cfg = args['password']
|
_cfg = args['password']
|
||||||
|
|
Loading…
Reference in New Issue