diff --git a/authentik/sources/plex/tasks.py b/authentik/sources/plex/tasks.py index 62229d88f..39e69547e 100644 --- a/authentik/sources/plex/tasks.py +++ b/authentik/sources/plex/tasks.py @@ -30,7 +30,7 @@ def check_plex_token(self: MonitoredTask, source_slug: int): self.set_status(TaskResult(TaskResultStatus.SUCCESSFUL, ["Plex token is valid."])) except RequestException as exc: error = exception_to_string(exc) - if source.plex_token != "": + if len(source.plex_token) < 1: error = error.replace(source.plex_token, "$PLEX_TOKEN") self.set_status( TaskResult( diff --git a/web/package-lock.json b/web/package-lock.json index 3373e0285..63e970adb 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -62,7 +62,7 @@ "eslint-plugin-lit": "^1.8.2", "fuse.js": "^6.6.2", "lit": "^2.6.1", - "mermaid": "^10.0.1", + "mermaid": "^10.0.2", "moment": "^2.29.4", "prettier": "^2.8.4", "pyright": "^1.1.296", @@ -7514,9 +7514,9 @@ } }, "node_modules/mermaid": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.0.1.tgz", - "integrity": "sha512-3O3QfTE0Ohhe3jbzsiQImKKnnARoZS3QQt/cyLbfnFaKN5fRs0tf0cOznCTpZHyB/r505S1qGrJJNYXxmMcYyg==", + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.0.2.tgz", + "integrity": "sha512-slwoB9WdNUT+/W9VhxLYRLZ0Ey12fIE+cAZjm3FmHTD+0F1uoJETfsNbVS1POnvQZhFYzfT6/z6hJZXgecqVBA==", "dependencies": { "@braintree/sanitize-url": "^6.0.0", "cytoscape": "^3.23.0", @@ -15731,9 +15731,9 @@ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" }, "mermaid": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.0.1.tgz", - "integrity": "sha512-3O3QfTE0Ohhe3jbzsiQImKKnnARoZS3QQt/cyLbfnFaKN5fRs0tf0cOznCTpZHyB/r505S1qGrJJNYXxmMcYyg==", + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.0.2.tgz", + "integrity": "sha512-slwoB9WdNUT+/W9VhxLYRLZ0Ey12fIE+cAZjm3FmHTD+0F1uoJETfsNbVS1POnvQZhFYzfT6/z6hJZXgecqVBA==", "requires": { "@braintree/sanitize-url": "^6.0.0", "cytoscape": "^3.23.0", diff --git a/web/package.json b/web/package.json index cedabade0..4fc765251 100644 --- a/web/package.json +++ b/web/package.json @@ -106,7 +106,7 @@ "eslint-plugin-lit": "^1.8.2", "fuse.js": "^6.6.2", "lit": "^2.6.1", - "mermaid": "^10.0.1", + "mermaid": "^10.0.2", "moment": "^2.29.4", "prettier": "^2.8.4", "pyright": "^1.1.296",