change motd

This commit is contained in:
deflax 2018-03-18 14:54:20 +02:00
parent 802b08c67a
commit 05ce0fc4bc

View file

@ -14,16 +14,12 @@ import plugin
config = ioconfig.parser config = ioconfig.parser
logger = ioconfig.logger logger = ioconfig.logger
def welcome(): def welcome():
"""displays motd in log as welcome message""" logger.info('# proxmaster ][ (c) 2015-2018 deflax.net #')
logger.info('# proxmaster ][ (c) 2015-2017 deflax.net #')
def selector(fn, req): def selector(fn, req):
""" try to exec commands """ """ try to exec commands """
json = req.context['doc'] json = req.context['doc']
#print(json)
apipass = json['apikey'] apipass = json['apikey']
if apipass != config.get('general', 'apipass'): if apipass != config.get('general', 'apipass'):
status = falcon.HTTP_403 status = falcon.HTTP_403