mirror of
https://github.com/zulip/zulip.git
synced 2025-10-26 09:34:02 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user