Admin UI to list and manage remote and local accounts

This commit is contained in:
Eliot Berriot 2019-01-03 17:10:02 +01:00
parent b1194e50de
commit e186c6bb06
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
18 changed files with 797 additions and 283 deletions

View file

@ -204,6 +204,9 @@ class User(AbstractUser):
return ["user.{}.{}".format(self.pk, g) for g in groups]
def full_username(self):
return "{}@{}".format(self.username, settings.FEDERATION_HOSTNAME)
def generate_code(length=10):
return "".join(