1
0
Fork 0

Allow users to log in with email or username

This commit is contained in:
Mouse Reeve 2021-01-18 11:01:06 -08:00
parent f825709599
commit 11dd8c8f82
3 changed files with 31 additions and 1 deletions

View file

@ -25,6 +25,7 @@ from . import fields, Review
class User(OrderedCollectionPageMixin, AbstractUser):
''' a user who wants to read books '''
username = fields.UsernameField()
email = models.EmailField(unique=True)
key_pair = fields.OneToOneField(
'KeyPair',