From f2cd79ec20692f52b7bdfd7698a52b4aa3c154b4 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Thu, 14 Dec 2023 11:27:13 -0500 Subject: [PATCH] Fixed numeric password issue for authentication. #2326 --- bazarr/app/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/app/config.py b/bazarr/app/config.py index b69963eaa..3bef51cb1 100644 --- a/bazarr/app/config.py +++ b/bazarr/app/config.py @@ -122,8 +122,8 @@ validators = [ Validator('auth.apikey', must_exist=True, default=hexlify(os.urandom(16)).decode(), is_type_of=str), Validator('auth.type', must_exist=True, default=None, is_type_of=(NoneType, str), is_in=[None, 'basic', 'form']), - Validator('auth.username', must_exist=True, default='', is_type_of=str), - Validator('auth.password', must_exist=True, default='', is_type_of=str), + Validator('auth.username', must_exist=True, default='', is_type_of=str, cast=str), + Validator('auth.password', must_exist=True, default='', is_type_of=str, cast=str), # cors section Validator('cors.enabled', must_exist=True, default=False, is_type_of=bool),