mirror of
https://github.com/fusion44/blitz_api.git
synced 2026-08-15 12:10:12 +02:00
Fix Update Setup (#107)
* #104 fix default value * handle update state on setup
This commit is contained in:
parent
ec39b9aeb1
commit
2962b522b7
2 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
secret=please_please_update_me_please
|
||||
algorithm=HS256
|
||||
# expiry time in milliseconds
|
||||
jwt_expiry_time=3_600_000 # 1 hour
|
||||
# expiry time in milliseconds (3600000 = 1 hour)
|
||||
jwt_expiry_time=3600000
|
||||
|
||||
# login password
|
||||
login_password=12345678
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ async def setup_start_done(data: StartDoneData):
|
|||
)
|
||||
|
||||
#### RECOVERY ####
|
||||
elif setupPhase == "recovery":
|
||||
elif setupPhase == "recovery" or setupPhase == "update":
|
||||
logging.warning(f"check recovery data")
|
||||
if password_valid(data.passwordA) == False:
|
||||
logging.warning(f"passwordA is not valid")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue