piwigo: Remove possibly_add_cookie.
This one was a fake thing to make clients happy. Real sessions coming sonn.
This commit is contained in:
parent
e5cdd74294
commit
180a008100
@ -133,19 +133,6 @@ def pwg_images_addChunk(request):
|
||||
return True
|
||||
|
||||
|
||||
def possibly_add_cookie(request, response):
|
||||
# TODO: We should only add a *real* cookie, if
|
||||
# authenticated. And if there is no cookie already.
|
||||
if True:
|
||||
response.set_cookie(
|
||||
'pwg_id',
|
||||
"some_fake_for_now",
|
||||
path=request.environ['SCRIPT_NAME'],
|
||||
domain=mg_globals.app_config.get('csrf_cookie_domain'),
|
||||
secure=(request.scheme.lower() == 'https'),
|
||||
httponly=True)
|
||||
|
||||
|
||||
@csrf_exempt
|
||||
def ws_php(request):
|
||||
if request.method not in ("GET", "POST"):
|
||||
@ -165,6 +152,4 @@ def ws_php(request):
|
||||
|
||||
response = response_xml(result)
|
||||
|
||||
possibly_add_cookie(request, response)
|
||||
|
||||
return response
|
||||
|
Loading…
x
Reference in New Issue
Block a user