MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / create_user

Method create_user

api/users/models.py:89–93  ·  view source on GitHub ↗

Create and save a regular User with the given email and password.

(self, email, password=None, **extra_fields)

Source from the content-addressed store, hash-verified

87 return user
88
89 def create_user(self, email, password=None, **extra_fields): # type: ignore[no-untyped-def]
90 """Create and save a regular User with the given email and password."""
91 extra_fields.setdefault("is_staff", False)
92 extra_fields.setdefault("is_superuser", False)
93 return self._create_user(email, password, **extra_fields) # type: ignore[no-untyped-call]
94
95 def create_superuser(self, email, password, **extra_fields): # type: ignore[no-untyped-def]
96 """Create and save a SuperUser with the given email and password."""

Calls 1

_create_userMethod · 0.95