0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-27 16:26:50 +01:00

fix typos

This commit is contained in:
Paolo D'Amico 2021-03-31 13:36:14 -07:00
parent 076ac32641
commit 26b6fab13f
3 changed files with 4 additions and 5 deletions

View File

@ -11,7 +11,7 @@ from posthog.event_usage import report_user_logged_in
from posthog.models import User
def axess_logout(*args, **kwargs):
def axess_lockout(*args, **kwargs):
return JsonResponse(
{
"type": "authentication_error",

View File

@ -203,7 +203,7 @@ STATSD_PREFIX = os.getenv("STATSD_PREFIX", "")
AXES_ENABLED = get_from_env("AXES_ENABLED", True, type_cast=strtobool)
AXES_FAILURE_LIMIT = int(os.getenv("AXES_FAILURE_LIMIT", 5))
AXES_COOLOFF_TIME = timedelta(minutes=15)
AXES_LOCKOUT_CALLABLE = "posthog.api.authentication.axess_logout"
AXES_LOCKOUT_CALLABLE = "posthog.api.authentication.axess_lockout"
AXES_META_PRECEDENCE_ORDER = [
"HTTP_X_FORWARDED_FOR",
"REMOTE_ADDR",

View File

@ -22,17 +22,16 @@ from posthog.api import (
capture,
dashboard,
decide,
organization,
projects_router,
router,
signup,
user,
)
from posthog.api.signup import SignupSerializer
from posthog.demo import demo
from posthog.email import is_email_available
from posthog.event_usage import report_user_signed_up
from .api.organization import OrganizationSignupSerializer
from .models import OrganizationInvite, Team, User
from .utils import render_template
from .views import health, login_required, preflight_check, stats, system_status
@ -92,7 +91,7 @@ def social_create_user(strategy: DjangoStrategy, details, backend, request, user
if not organization_name or email_opt_in is None:
return redirect(finish_social_signup)
serializer = OrganizationSignupSerializer(
serializer = SignupSerializer(
data={
"organization_name": organization_name,
"email_opt_in": email_opt_in,