Skip to content

Commit ecf3636

Browse files
authored
Fix failure to await render_template (#37)
Fix failure to await render_template
2 parents d36ac97 + f57d085 commit ecf3636

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

firstuseauthenticator/firstuseauthenticator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _register_template_path(self):
6060
@web.authenticated
6161
async def get(self):
6262
self._register_template_path()
63-
html = self.render_template('reset.html')
63+
html = await self.render_template('reset.html')
6464
self.finish(html)
6565

6666
@web.authenticated
@@ -74,7 +74,7 @@ async def post(self):
7474
else:
7575
alert = "danger"
7676

77-
html = self.render_template(
77+
html = await self.render_template(
7878
'reset.html',
7979
result=True,
8080
alert=alert,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
author_email='[email protected]',
2020
license='3 Clause BSD',
2121
packages=find_packages(),
22-
install_requires=['bcrypt', 'jupyterhub>=0.8'],
22+
install_requires=['bcrypt', 'jupyterhub>=1.3'],
2323
package_data={
2424
'': ['*.html'],
2525
},

0 commit comments

Comments
 (0)