149 """
150 if "allauth" in settings.INSTALLED_APPS:
151
152 # When `is_active` of a user is set to False, allauth tries to return template html153 # which does not exist. This is the solution for it. See issue #264.
154 try:
155 return self.get_auth_user_using_allauth(username, email, password)
22User = get_user_model()
23
24# Custom RegistrationSerializer; with first and last name + possible future changes.
25# From https://github.com/iMerica/dj-rest-auth/blob/master/dj_rest_auth/registration/serializers.py#L197 26class RegisterSerializer(serializers.Serializer):
27 first_name = serializers.CharField(max_length=30, required=True, write_only=True)
28 last_name = serializers.CharField(max_length=30, required=True, write_only=True)
2
3AUTH_PASSWORD_VALIDATORS = [
4 {
5 "NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator", 6 "OPTIONS": {
7 "user_attributes": ["first_name", "last_name", "email", "username"],
8 "max_similarity": 0.6,
15
16User = get_user_model()
17
18"""using SP's pk to get reference to the user (organizer) and modify request data with username""" 19
20
21def JSONTimeZone(time):
9#! so, the code contains fixes for that
10
11"""
12- using invite_profile to reference the SP user; not a nasty workaround but modification from existing code.13"""
14
15
Line length greater than configured max_line_length
detected, defaults to 79 character. This limit can be configured docs