def METHOD_NAME(self) -> SecureView.HandlerType:
    # Prevent bug report
    x_forwarded_for = self.request.META.get('HTTP_X_FORWARDED_FOR')
    if x_forwarded_for and x_forwarded_for.split(',')[0] == '127.0.0.1':
        return self.http_forbidden()
    assert 'username' in self.request.POST
    assert 'password' in self.request.POST
    _user = self.request.user
    assert not _user.is_authenticated or not cast(User, _user).is_valid()
    username = self.request.POST['username']
    # Check weather username exists
    if not User.objects.filter(username=username).exists():
        # Allow org to login with orgname
        org = Organization.objects.filter(oname=username).first()
        if org is None:
            return self.wrong('用户名不存在')
        username = org.get_user().username
    self.username = username
    self.password = self.request.POST['password']
    return self.login