remove default secret_ws_token, set timeout min to 0
This commit is contained in:
parent
818f7bfc40
commit
5483cf21f6
@ -502,12 +502,13 @@ CONF_SCHEMA = {
|
||||
'required': ['name', 'url', 'ws_token']
|
||||
}
|
||||
},
|
||||
'wait_timeout': {'type': 'integer'},
|
||||
'sleep_time': {'type': 'integer'},
|
||||
'ping_timeout': {'type': 'integer'},
|
||||
'wait_timeout': {'type': 'integer', 'minimum': 0},
|
||||
'sleep_time': {'type': 'integer', 'minimum': 0},
|
||||
'ping_timeout': {'type': 'integer', 'minimum': 0},
|
||||
'remove_signals_analyzed_df': {'type': 'boolean', 'default': False},
|
||||
'initial_candle_limit': {
|
||||
'type': 'integer',
|
||||
'minimum': 0,
|
||||
'maximum': 1500,
|
||||
'default': 1500
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ async def validate_ws_token(
|
||||
ws_token: Union[str, None] = Query(default=None, alias="token"),
|
||||
api_config: Dict[str, Any] = Depends(get_api_config)
|
||||
):
|
||||
secret_ws_token = api_config.get('ws_token', 'secret_ws_t0ken.')
|
||||
secret_ws_token = api_config.get('ws_token', None)
|
||||
secret_jwt_key = api_config.get('jwt_secret_key', 'super-secret')
|
||||
|
||||
if ws_token and secrets.compare_digest(secret_ws_token, ws_token):
|
||||
|
Loading…
Reference in New Issue
Block a user