Fix Update Setup (#107)

* #104 fix default value
* handle update state on setup
This commit is contained in:
/rootzoll 2022-06-06 15:36:30 +02:00 committed by GitHub
parent ec39b9aeb1
commit 2962b522b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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")