Update AJAX client with the corrected Autologin functionality

This commit is contained in:
Griatch 2017-10-05 22:43:12 +02:00
parent 8eff4678b4
commit 2d030afb36
3 changed files with 34 additions and 11 deletions

View file

@ -294,9 +294,9 @@ if WEBSERVER_ENABLED:
# create ajax client processes at /webclientdata
from evennia.server.portal import webclient_ajax
webclient = webclient_ajax.WebClient()
webclient.sessionhandler = PORTAL_SESSIONS
web_root.putChild("webclientdata", webclient)
ajax_webclient = webclient_ajax.AjaxWebClient()
ajax_webclient.sessionhandler = PORTAL_SESSIONS
web_root.putChild("webclientdata", ajax_webclient)
webclientstr = "\n + webclient (ajax only)"
if WEBSOCKET_CLIENT_ENABLED and not websocket_started: