We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc55242 commit 68d3821Copy full SHA for 68d3821
jupyterhub_traefik_proxy/proxy.py
@@ -26,6 +26,7 @@
26
from subprocess import Popen, TimeoutExpired
27
from urllib.parse import urlparse, urlunparse
28
29
+import bcrypt
30
from jupyterhub.proxy import Proxy
31
from jupyterhub.utils import exponential_backoff, new_token, url_path_join
32
from tornado.httpclient import AsyncHTTPClient, HTTPClientError
@@ -305,8 +306,6 @@ def _warn_empty_username(self):
305
306
307
@default("traefik_api_hashed_password")
308
def _generate_htpassword(self):
- import bcrypt
309
-
310
return bcrypt.hashpw(
311
self.traefik_api_password.encode("utf8"), bcrypt.gensalt()
312
).decode("ascii")
0 commit comments