plain.auth 0.10.0__tar.gz → 0.11.0__tar.gz
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-0.10.0 → plain_auth-0.11.0}/PKG-INFO +1 -3
- {plain_auth-0.10.0 → plain_auth-0.11.0}/plain/auth/README.md +0 -2
- {plain_auth-0.10.0 → plain_auth-0.11.0}/pyproject.toml +1 -1
- plain_auth-0.10.0/plain/auth/config.py +0 -6
- {plain_auth-0.10.0 → plain_auth-0.11.0}/.gitignore +0 -0
- {plain_auth-0.10.0 → plain_auth-0.11.0}/LICENSE +0 -0
- {plain_auth-0.10.0 → plain_auth-0.11.0}/README.md +0 -0
- {plain_auth-0.10.0 → plain_auth-0.11.0}/plain/auth/__init__.py +0 -0
- {plain_auth-0.10.0 → plain_auth-0.11.0}/plain/auth/default_settings.py +0 -0
- {plain_auth-0.10.0 → plain_auth-0.11.0}/plain/auth/middleware.py +0 -0
- {plain_auth-0.10.0 → plain_auth-0.11.0}/plain/auth/sessions.py +0 -0
- {plain_auth-0.10.0 → plain_auth-0.11.0}/plain/auth/utils.py +0 -0
- {plain_auth-0.10.0 → plain_auth-0.11.0}/plain/auth/views.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plain.auth
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.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
|
|
@@ -78,7 +78,6 @@ urlpatterns = [
|
|
|
78
78
|
]
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-
|
|
82
81
|
## Checking if a user is logged in
|
|
83
82
|
|
|
84
83
|
A `request.user` will either be `None` or point to an instance of a your `AUTH_USER_MODEL`.
|
|
@@ -102,7 +101,6 @@ else:
|
|
|
102
101
|
print("You are not logged in.")
|
|
103
102
|
```
|
|
104
103
|
|
|
105
|
-
|
|
106
104
|
## Restricting views
|
|
107
105
|
|
|
108
106
|
Use the `AuthViewMixin` to restrict views to logged in users, admin users, or custom logic.
|
|
@@ -66,7 +66,6 @@ urlpatterns = [
|
|
|
66
66
|
]
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
|
|
70
69
|
## Checking if a user is logged in
|
|
71
70
|
|
|
72
71
|
A `request.user` will either be `None` or point to an instance of a your `AUTH_USER_MODEL`.
|
|
@@ -90,7 +89,6 @@ else:
|
|
|
90
89
|
print("You are not logged in.")
|
|
91
90
|
```
|
|
92
91
|
|
|
93
|
-
|
|
94
92
|
## Restricting views
|
|
95
93
|
|
|
96
94
|
Use the `AuthViewMixin` to restrict views to logged in users, admin users, or custom logic.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|