mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 06:52:59 +00:00
Allow to use base URL in custom HTML
This commit is contained in:
@@ -1101,6 +1101,9 @@ class PAMAuthenticator(LocalAuthenticator):
|
|||||||
else:
|
else:
|
||||||
return super().normalize_username(username)
|
return super().normalize_username(username)
|
||||||
|
|
||||||
|
def get_custom_html(self, base_url):
|
||||||
|
return self.custom_html
|
||||||
|
|
||||||
|
|
||||||
for _old_name, _new_name, _version in [
|
for _old_name, _new_name, _version in [
|
||||||
("check_group_whitelist", "check_group_allowed", "1.2"),
|
("check_group_whitelist", "check_group_allowed", "1.2"),
|
||||||
|
@@ -101,7 +101,7 @@ class LoginHandler(BaseHandler):
|
|||||||
{'next': self.get_argument('next', '')},
|
{'next': self.get_argument('next', '')},
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
custom_html = Template(self.authenticator.custom_html).render(**context)
|
custom_html = Template(self.authenticator.get_custom_html(self.hub.base_url)).render(**context)
|
||||||
return self.render_template(
|
return self.render_template(
|
||||||
'login.html',
|
'login.html',
|
||||||
**context,
|
**context,
|
||||||
|
Reference in New Issue
Block a user