MCPcopy Create free account
hub / github.com/lesspass/lesspass / create_superuser

Method create_superuser

containers/backend/api/models.py:17–21  ·  view source on GitHub ↗
(self, email, password, key="")

Source from the content-addressed store, hash-verified

15 return user
16
17 def create_superuser(self, email, password, key=""):
18 user = self.create_user(email, password=password, key=key)
19 user.is_admin = True
20 user.save(using=self._db)
21 return user
22
23
24class LessPassUser(AbstractBaseUser):

Callers

nothing calls this directly

Calls 2

create_userMethod · 0.95
saveMethod · 0.80

Tested by

no test coverage detected