plain.auth 0.8.0__py3-none-any.whl → 0.10.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
plain/auth/README.md CHANGED
@@ -38,7 +38,7 @@ from plain.passwords.models import PasswordField
38
38
 
39
39
 
40
40
  class User(models.Model):
41
- email = models.EmailField(unique=True)
41
+ email = models.EmailField()
42
42
  password = PasswordField()
43
43
  is_admin = models.BooleanField(default=False)
44
44
  created_at = models.DateTimeField(auto_now_add=True)
plain/auth/sessions.py CHANGED
@@ -1,6 +1,6 @@
1
1
  from plain.csrf.middleware import rotate_token
2
2
  from plain.exceptions import ImproperlyConfigured
3
- from plain.packages import packages_registry as plain_packages
3
+ from plain.models import models_registry
4
4
  from plain.runtime import settings
5
5
  from plain.utils.crypto import constant_time_compare, salted_hmac
6
6
 
@@ -88,7 +88,7 @@ def get_user_model():
88
88
  Return the User model that is active in this project.
89
89
  """
90
90
  try:
91
- return plain_packages.get_model(settings.AUTH_USER_MODEL, require_ready=False)
91
+ return models_registry.get_model(settings.AUTH_USER_MODEL, require_ready=False)
92
92
  except ValueError:
93
93
  raise ImproperlyConfigured(
94
94
  "AUTH_USER_MODEL must be of the form 'package_label.model_name'"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.auth
3
- Version: 0.8.0
3
+ Version: 0.10.0
4
4
  Summary: User authentication and authorization for Plain.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-File: LICENSE
@@ -50,7 +50,7 @@ from plain.passwords.models import PasswordField
50
50
 
51
51
 
52
52
  class User(models.Model):
53
- email = models.EmailField(unique=True)
53
+ email = models.EmailField()
54
54
  password = PasswordField()
55
55
  is_admin = models.BooleanField(default=False)
56
56
  created_at = models.DateTimeField(auto_now_add=True)
@@ -0,0 +1,12 @@
1
+ plain/auth/README.md,sha256=tg_YZraHB9zrBH1Ei_FdjfNjZfJvu7jSGCi4-YJiOaA,2410
2
+ plain/auth/__init__.py,sha256=oDOVSov5os1_l-hYNlGd5hb6vy0rF5Q3VMRV1UOZeFU,123
3
+ plain/auth/config.py,sha256=nf-6WD-3lEIq4VBMKQCE4_xtXRvOyxnJmmQKleme3Wc,115
4
+ plain/auth/default_settings.py,sha256=65VzDn3j61OMn78Lg6Zuds4A8QKzJJ_0G9KoFqAOIRo,466
5
+ plain/auth/middleware.py,sha256=YJrzhro89SdSNDtfwyQM8jGgU5GmXvApZWiktit6K70,980
6
+ plain/auth/sessions.py,sha256=pCBpbrWf2nRMt5BZ4u1NDfbO7oNWuLujIybNDlmvzts,5265
7
+ plain/auth/utils.py,sha256=eEON0Mo928l-aW5tqBuoTdVke8aP4majxVtAFoLroSE,1280
8
+ plain/auth/views.py,sha256=_igztEBQKSM4CZro2lvlK0m01eIksqbmyux4w8gY1ks,4095
9
+ plain_auth-0.10.0.dist-info/METADATA,sha256=kUnLGjDaBOJ4VqFUzKBLgM-WeEvR5iKRxRmtq1bddME,2764
10
+ plain_auth-0.10.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
+ plain_auth-0.10.0.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
12
+ plain_auth-0.10.0.dist-info/RECORD,,
@@ -1,12 +0,0 @@
1
- plain/auth/README.md,sha256=yVDb2iDmlNunWWSHn6eVE8kS0vvIkC3KCZ1EO1SXWDQ,2421
2
- plain/auth/__init__.py,sha256=oDOVSov5os1_l-hYNlGd5hb6vy0rF5Q3VMRV1UOZeFU,123
3
- plain/auth/config.py,sha256=nf-6WD-3lEIq4VBMKQCE4_xtXRvOyxnJmmQKleme3Wc,115
4
- plain/auth/default_settings.py,sha256=65VzDn3j61OMn78Lg6Zuds4A8QKzJJ_0G9KoFqAOIRo,466
5
- plain/auth/middleware.py,sha256=YJrzhro89SdSNDtfwyQM8jGgU5GmXvApZWiktit6K70,980
6
- plain/auth/sessions.py,sha256=ivNOUhwneFU6M2q3H63p6QCZ7laOCyXH6lwEsgH-Bu4,5286
7
- plain/auth/utils.py,sha256=eEON0Mo928l-aW5tqBuoTdVke8aP4majxVtAFoLroSE,1280
8
- plain/auth/views.py,sha256=_igztEBQKSM4CZro2lvlK0m01eIksqbmyux4w8gY1ks,4095
9
- plain_auth-0.8.0.dist-info/METADATA,sha256=61xRx73PCwAslOKa1YtGlA1DnCOOO_izbkVRje6WEAc,2774
10
- plain_auth-0.8.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
11
- plain_auth-0.8.0.dist-info/licenses/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
12
- plain_auth-0.8.0.dist-info/RECORD,,