Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f027aaa730 | ||
|
|
cf86f08d04 | ||
|
|
c4fab1b7e6 | ||
|
|
fd1c6b2e7d | ||
|
|
b366ab4653 | ||
|
|
ed4db2453e |
No files matched your search
+2
-2
@@ -26,8 +26,8 @@ improve/.* 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev
|
||||
|
||||
# staging/bugfix is the branch for preparation of the 1.9.x bugfix releases
|
||||
# so are any bug/... branches
|
||||
staging/bugfix 1.9.1 93e495f921ea445d69ef51a1415f304b85ad3577 pep440-dev
|
||||
bug/.* 1.9.1 93e495f921ea445d69ef51a1415f304b85ad3577 pep440-dev
|
||||
staging/bugfix 1.9.2 1d519a21702ea180c026929da2a6e17079470b9a pep440-dev
|
||||
bug/.* 1.9.2 1d519a21702ea180c026929da2a6e17079470b9a pep440-dev
|
||||
|
||||
# staging/maintenance is currently the branch for preparation of 1.9.0rc6
|
||||
# so is regressionfix/...
|
||||
|
||||
@@ -176,6 +176,7 @@ date of first contribution):
|
||||
* [Moiz Rasheed](https://github.com/msrasheed)
|
||||
* [Scott Martin](https://github.com/smartin015)
|
||||
* [Shyam Sunder](https://github.com/sgsunder)
|
||||
* [Christopher Perrin](https://github.com/cperrin88)
|
||||
|
||||
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
|
||||
[Daid Braam](https://github.com/daid). Parts of its communication layer and
|
||||
|
||||
+1
-1
@@ -66,4 +66,4 @@ thanks to everyone who contributed!
|
||||
* Steve Thompson
|
||||
* Ulrich Kempken
|
||||
|
||||
and 1979 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
|
||||
and 1970 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
|
||||
@@ -64,7 +64,7 @@ core_deps = [
|
||||
"pydantic>=1.10.7,<2",
|
||||
"pylru>=1.2.1,<2",
|
||||
"pyserial>=3.5,<4",
|
||||
"PyYAML>=5.4.1,<6", # no changelog available for version 6, so we're not risking it
|
||||
"PyYAML>=6.0.1,<7", # changelog at https://github.com/yaml/pyyaml/blob/master/CHANGES
|
||||
"requests>=2.28.2,<3",
|
||||
"sarge==0.1.7.post1",
|
||||
"semantic_version>=2.10.0,<3",
|
||||
|
||||
@@ -27,7 +27,7 @@ try:
|
||||
|
||||
# test if we can actually hash and verify, if not we won't use this backend
|
||||
hash = argon2.hash("test")
|
||||
argon2.verify("test", hash)
|
||||
assert argon2.verify("test", hash)
|
||||
|
||||
password_hashers.append(argon2)
|
||||
except Exception:
|
||||
|
||||
@@ -18,10 +18,10 @@ from octoprint.util.version import (
|
||||
)
|
||||
|
||||
SENTRY_URL_SERVER = (
|
||||
"https://2887d6b262504b589a67632ab6ff6953@o118517.ingest.sentry.io/1373987"
|
||||
"https://ba4e3d61c37a4d219e1cd81bdc1417a7@o118517.ingest.sentry.io/1373987"
|
||||
)
|
||||
SENTRY_URL_COREUI = (
|
||||
"https://b6be6ca750ff4f8aabb07119fc6a7f31@o118517.ingest.sentry.io/1374096"
|
||||
"https://2382252761de4d318e5f83be0816efaa@o118517.ingest.sentry.io/1374096"
|
||||
)
|
||||
|
||||
SETTINGS_DEFAULTS = {
|
||||
|
||||
@@ -61,7 +61,7 @@ class SoftwareUpdatePlugin(
|
||||
octoprint.plugin.EventHandlerPlugin,
|
||||
):
|
||||
COMMIT_TRACKING_TYPES = ("github_commit", "bitbucket_commit")
|
||||
CURRENT_TRACKING_TYPES = COMMIT_TRACKING_TYPES + ("etag", "lastmodified", "jsondata")
|
||||
CURRENT_TRACKING_TYPES = COMMIT_TRACKING_TYPES + ("httpheader", "jsondata")
|
||||
RELEASE_TRACKING_TYPES = ("github_release",)
|
||||
|
||||
OCTOPRINT_RESTART_TYPES = ("pip", "single_file_plugin")
|
||||
|
||||
@@ -21,3 +21,17 @@ class UserManagerTest(unittest.TestCase):
|
||||
|
||||
# should not throw an exception
|
||||
octoprint.access.users.UserManager.create_password_hash(password)
|
||||
|
||||
def test_createPasswordHash_is_valid(self):
|
||||
password = "test1234"
|
||||
password_hash = octoprint.access.users.UserManager.create_password_hash(password)
|
||||
user = octoprint.access.users.User(
|
||||
"username",
|
||||
password_hash,
|
||||
True,
|
||||
permissions=[],
|
||||
apikey="apikey",
|
||||
settings={"key": "value"},
|
||||
)
|
||||
|
||||
self.assertTrue(user.check_password(password))
|
||||
Reference in new issue
Block a user