User session tracking #93587
@ -495,6 +495,7 @@ class User(AbstractBaseUser, PermissionsMixin):
|
|||||||
is_active=False,
|
is_active=False,
|
||||||
avatar=None,
|
avatar=None,
|
||||||
)
|
)
|
||||||
|
self.sessions.all().delete()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def generate_nickname(cls, email: Optional[str] = '', full_name: Optional[str] = '') -> str:
|
def generate_nickname(cls, email: Optional[str] = '', full_name: Optional[str] = '') -> str:
|
||||||
|
Loading…
Reference in New Issue
Block a user