auth: Fix Python style not supported on Python 3.5.

This bug broke the 2.1.5 release on Ubuntu Xenial.
This commit is contained in:
Tim Abbott
2020-06-17 00:21:23 -07:00
parent d163143f12
commit cbb9ea6b49

View File

@@ -618,9 +618,8 @@ class TwoFactorLoginView(BaseTwoFactorLoginView):
return super().done(form_list, **kwargs)
@has_request_variables
def login_page(
request: HttpRequest, next: str = REQ(default="/"), **kwargs: Any,
) -> HttpResponse:
def login_page(request: HttpRequest,
next: str = REQ(default="/"), **kwargs: Any) -> HttpResponse:
# To support previewing the Zulip login pages, we have a special option
# that disables the default behavior of redirecting logged-in users to the
# logged-in app.