Skip to content

Commit

Permalink
HH-225559 fix debug_mode for at
Browse files Browse the repository at this point in the history
  • Loading branch information
712u3 committed Aug 7, 2024
1 parent c486a86 commit 27960be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontik/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,14 +488,14 @@ def __init__(self, tornado_request: httputil.HTTPServerRequest, auth_failed: Opt
debug_log.debug('debug mode is inherited due to %s request header', DEBUG_HEADER_NAME)

if self.debug_value is not None or self.inherited:
if options.debug or auth_failed is False:
self.on_auth_ok()
return

if auth_failed is True:
self.failed_auth_header = 'Basic realm="Secure Area"'
return

if options.debug or auth_failed is False:
self.on_auth_ok()
return

self.failed_auth_header = check_debug_auth(tornado_request, options.debug_login, options.debug_password)
if not self.failed_auth_header:
self.on_auth_ok()
Expand Down

0 comments on commit 27960be

Please sign in to comment.