mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-10 09:02:44 +08:00
Fixed numeric password issue for authentication. #2326
This commit is contained in:
parent
cbfe8482a8
commit
f2cd79ec20
1 changed files with 2 additions and 2 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue