4c50c0aae6
- Implemented `google_drive_callback.html` for processing Google Drive authorization, including UI for success and error states. - Added JavaScript functionality for exchanging authorization codes, saving settings, and handling folder selection. - Created `google_drive_callback_error.html` to display error messages during the authorization process.
13 lines
355 B
Python
13 lines
355 B
Python
"""
|
|
Module for masking sensitive information in configuration values
|
|
"""
|
|
|
|
def mask_sensitive_value(value):
|
|
"""
|
|
Masks sensitive values like API keys in logs and output
|
|
"""
|
|
# Return masked value for sensitive data
|
|
if value and isinstance(value, str) and len(value) > 8:
|
|
return value[:4] + "*" * (len(value) - 4)
|
|
return value
|