mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-27 16:26:50 +01:00
fix typos
This commit is contained in:
parent
076ac32641
commit
26b6fab13f
@ -11,7 +11,7 @@ from posthog.event_usage import report_user_logged_in
|
|||||||
from posthog.models import User
|
from posthog.models import User
|
||||||
|
|
||||||
|
|
||||||
def axess_logout(*args, **kwargs):
|
def axess_lockout(*args, **kwargs):
|
||||||
return JsonResponse(
|
return JsonResponse(
|
||||||
{
|
{
|
||||||
"type": "authentication_error",
|
"type": "authentication_error",
|
||||||
|
@ -203,7 +203,7 @@ STATSD_PREFIX = os.getenv("STATSD_PREFIX", "")
|
|||||||
AXES_ENABLED = get_from_env("AXES_ENABLED", True, type_cast=strtobool)
|
AXES_ENABLED = get_from_env("AXES_ENABLED", True, type_cast=strtobool)
|
||||||
AXES_FAILURE_LIMIT = int(os.getenv("AXES_FAILURE_LIMIT", 5))
|
AXES_FAILURE_LIMIT = int(os.getenv("AXES_FAILURE_LIMIT", 5))
|
||||||
AXES_COOLOFF_TIME = timedelta(minutes=15)
|
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 = [
|
AXES_META_PRECEDENCE_ORDER = [
|
||||||
"HTTP_X_FORWARDED_FOR",
|
"HTTP_X_FORWARDED_FOR",
|
||||||
"REMOTE_ADDR",
|
"REMOTE_ADDR",
|
||||||
|
@ -22,17 +22,16 @@ from posthog.api import (
|
|||||||
capture,
|
capture,
|
||||||
dashboard,
|
dashboard,
|
||||||
decide,
|
decide,
|
||||||
organization,
|
|
||||||
projects_router,
|
projects_router,
|
||||||
router,
|
router,
|
||||||
signup,
|
signup,
|
||||||
user,
|
user,
|
||||||
)
|
)
|
||||||
|
from posthog.api.signup import SignupSerializer
|
||||||
from posthog.demo import demo
|
from posthog.demo import demo
|
||||||
from posthog.email import is_email_available
|
from posthog.email import is_email_available
|
||||||
from posthog.event_usage import report_user_signed_up
|
from posthog.event_usage import report_user_signed_up
|
||||||
|
|
||||||
from .api.organization import OrganizationSignupSerializer
|
|
||||||
from .models import OrganizationInvite, Team, User
|
from .models import OrganizationInvite, Team, User
|
||||||
from .utils import render_template
|
from .utils import render_template
|
||||||
from .views import health, login_required, preflight_check, stats, system_status
|
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:
|
if not organization_name or email_opt_in is None:
|
||||||
return redirect(finish_social_signup)
|
return redirect(finish_social_signup)
|
||||||
|
|
||||||
serializer = OrganizationSignupSerializer(
|
serializer = SignupSerializer(
|
||||||
data={
|
data={
|
||||||
"organization_name": organization_name,
|
"organization_name": organization_name,
|
||||||
"email_opt_in": email_opt_in,
|
"email_opt_in": email_opt_in,
|
||||||
|
Loading…
Reference in New Issue
Block a user