mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 04:07:57 -06:00
STAR-322: Improving logging and cluster connection
This commit is contained in:
parent
9086105204
commit
9f4b7bd703
6 changed files with 51 additions and 35 deletions
|
@ -52,7 +52,8 @@ class AuthorizationService:
|
|||
if not self._user_profile:
|
||||
# If no user profile was stored locally, we try to get it from JWT.
|
||||
self._user_profile = self._parseJWT()
|
||||
if not self._user_profile:
|
||||
|
||||
if not self._user_profile and self._auth_data:
|
||||
# If there is still no user profile from the JWT, we have to log in again.
|
||||
Logger.log("w", "The user profile could not be loaded. The user must log in again!")
|
||||
self.deleteAuthData()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue