typo rendering logout page when auto_login=True

and include it in test coverage
This commit is contained in:
Min RK
2017-09-27 14:29:56 +02:00
parent 6bbfcdfe4f
commit a0042e9302
2 changed files with 14 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ class LogoutHandler(BaseHandler):
self.clear_login_cookie()
self.statsd.incr('logout')
if self.authenticator.auto_login:
self.render('logout.html')
self.render_template('logout.html')
else:
self.redirect(self.settings['login_url'], permanent=False)