Override to customize the login URL based on the request. By default, we use the ``login_url`` application setting.
(self)
| 1357 | return None |
| 1358 | |
| 1359 | def get_login_url(self) -> str: |
| 1360 | """Override to customize the login URL based on the request. |
| 1361 | |
| 1362 | By default, we use the ``login_url`` application setting. |
| 1363 | """ |
| 1364 | self.require_setting("login_url", "@tornado.web.authenticated") |
| 1365 | return self.application.settings["login_url"] |
| 1366 | |
| 1367 | def get_template_path(self) -> Optional[str]: |
| 1368 | """Override to customize template path for each handler. |
no test coverage detected