♻ Fix deprecated method names

This commit is contained in:
Gina Häußge committed 2020-02-24 14:16:09 +01:00
1 parent e30e18e431
commit 38c09153ac
1 file changed
+2 -2
+2 -2
View File
@@ -241,9 +241,9 @@ def get_user_for_authorization_header(header):
if not octoprint.server.userManager.enabled:
return None
user = octoprint.server.userManager.findUser(userid=name)
user = octoprint.server.userManager.find_user(userid=name)
if settings().getBoolean(["accessControl", "checkBasicAuthenticationPassword"]) \
and not octoprint.server.userManager.checkPassword(name, password):
and not octoprint.server.userManager.check_password(name, password):
# password check enabled and password don't match
return None