mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: Convert password to string
This commit is contained in:
parent
1ad5e9eaa8
commit
151ab28fae
@ -427,11 +427,11 @@ def parse_pin_value(val, valuetype: str = None):
|
||||
|
||||
|
||||
def login(password):
|
||||
if get_localstorage("password") == password:
|
||||
if get_localstorage("password") == str(password):
|
||||
return True
|
||||
pwd = input(label="Please login below.", type=PASSWORD, placeholder="PASSWORD")
|
||||
if pwd == password:
|
||||
set_localstorage("password", pwd)
|
||||
if str(pwd) == str(password):
|
||||
set_localstorage("password", str(pwd))
|
||||
return True
|
||||
else:
|
||||
toast("Wrong password!", color="error")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user