mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 18:57:52 -06:00
Use state in AuthorizationService
It's a paranoid safety precaution, but beter safe than sorry. Reported by WhiteHats; F-1.1.1
This commit is contained in:
parent
ca25ec3dbc
commit
1269de744f
4 changed files with 20 additions and 4 deletions
|
@ -25,3 +25,6 @@ class AuthorizationRequestServer(HTTPServer):
|
|||
## Set the verification code on the request handler.
|
||||
def setVerificationCode(self, verification_code: str) -> None:
|
||||
self.RequestHandlerClass.verification_code = verification_code # type: ignore
|
||||
|
||||
def setState(self, state: str) -> None:
|
||||
self.RequestHandlerClass.state = state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue