Allow to use base URL in custom HTML

This commit is contained in:
Daisuke Taniwaki
2020-12-23 13:39:59 +09:00
parent 8d3a7b704c
commit c833fae901
2 changed files with 4 additions and 1 deletions

View File

@@ -101,7 +101,7 @@ class LoginHandler(BaseHandler):
{'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(
'login.html',
**context,