Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 226 Bytes
# Needs OctoPrint 1.3.6 or newer
def hook(apikey, *args, **kwargs):
from octoprint.server import userManager
return userManager.findUser(userid=apikey)
__plugin_hooks__ = {
"octoprint.accesscontrol.keyvalidator": hook
}