Skip to content

Commit

Permalink
Skip decoding without secret
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 25, 2024
1 parent d406381 commit e0faa01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/io/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def process_request(self, request) -> dict[str, Any]:
'''
request_data = super().process_request(request)
user = request.cookies.get('user')
if user:
if user and config.cookie_secret:
from tornado.web import decode_signed_value
try:
user = decode_signed_value(config.cookie_secret, 'user', user.value).decode('utf-8')
Expand Down

0 comments on commit e0faa01

Please sign in to comment.