diff --git a/docs/mixins.md b/docs/mixins.md index 7ab9cc5..83269fd 100644 --- a/docs/mixins.md +++ b/docs/mixins.md @@ -9,7 +9,7 @@ mixin with a `name`, `email`, `date_joined`, `is_staff`, and `is_active`. `user_management.models.mixins.VerifyEmailMixin` extends ActiveUserMixin to provide functionality to verify the email. It includes an additional -`email_verification_required` field. +`email_verified` field. By default, users will be created with `is_active = False`. A verification email will be sent including a link to verify the email and activate the account. diff --git a/user_management/api/views.py b/user_management/api/views.py index 3bb56d3..5a0e8d9 100644 --- a/user_management/api/views.py +++ b/user_management/api/views.py @@ -71,8 +71,8 @@ class UserRegister(generics.CreateAPIView): """ Register a new `User`. - An email to validate the new account is sent if `email_verification_required` - is set to `True`. + An email to validate the new account is sent if `email_verified` + is set to `False`. """ serializer_class = serializers.RegistrationSerializer permission_classes = [permissions.IsNotAuthenticated]