django-cms-qe 3.6.0__py3-none-any.whl → 3.6.1__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.
- cms_qe/api/views.py +5 -9
- {django_cms_qe-3.6.0.dist-info → django_cms_qe-3.6.1.dist-info}/METADATA +1 -1
- {django_cms_qe-3.6.0.dist-info → django_cms_qe-3.6.1.dist-info}/RECORD +6 -6
- {django_cms_qe-3.6.0.dist-info → django_cms_qe-3.6.1.dist-info}/WHEEL +0 -0
- {django_cms_qe-3.6.0.dist-info → django_cms_qe-3.6.1.dist-info}/licenses/LICENSE +0 -0
- {django_cms_qe-3.6.0.dist-info → django_cms_qe-3.6.1.dist-info}/top_level.txt +0 -0
cms_qe/api/views.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from django.contrib.auth import
|
|
1
|
+
from django.contrib.auth import authenticate
|
|
2
2
|
from django.db.models import Model
|
|
3
3
|
from django.http import HttpRequest
|
|
4
4
|
from django.utils.translation import gettext_lazy as _
|
|
@@ -10,11 +10,7 @@ class CmsQeBasicAuthentication(BasicAuthentication):
|
|
|
10
10
|
|
|
11
11
|
def authenticate_credentials(self, userid: str, password: str, request: HttpRequest = None) -> tuple[Model, None]:
|
|
12
12
|
"""Check credentials against settings and return AnonymousUser or None."""
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
raise AuthenticationFailed(_("User inactive or deleted.")) from err
|
|
18
|
-
if user.check_password(password):
|
|
19
|
-
return (user, None)
|
|
20
|
-
raise AuthenticationFailed(_("Invalid username/password."))
|
|
13
|
+
retval = authenticate(request, userid=userid, username=userid, password=password)
|
|
14
|
+
if retval is None:
|
|
15
|
+
raise AuthenticationFailed(_("Invalid username/password."))
|
|
16
|
+
return (retval, None)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: django-cms-qe
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.1
|
|
4
4
|
Summary: Django CMS Quick & Easy provides all important modules to run new page withouta lot of coding. Aims to do it very easily and securely.
|
|
5
5
|
Home-page: https://websites.pages.nic.cz/django-cms-qe
|
|
6
6
|
Author: CZ.NIC, z.s.p.o.
|
|
@@ -14,7 +14,7 @@ cms_qe/api/constants.py,sha256=pdSziATRm6yUaaPBYoD07JXcULMvKD0h5RdNTPpG0rM,64
|
|
|
14
14
|
cms_qe/api/permissions.py,sha256=QKSll8wVOWKNbvX_FsC9CRKbPVcT2s5FM81_fnqeEQg,409
|
|
15
15
|
cms_qe/api/urls.py,sha256=UPd7OUHTJxszNLZo3wu50wyVd7Df2F82PFP-Zr2N_fk,1445
|
|
16
16
|
cms_qe/api/utils.py,sha256=04lsxEkYXlOynCdsz6srdn7-h8Qdpn_lBwmjpJ89OI4,456
|
|
17
|
-
cms_qe/api/views.py,sha256
|
|
17
|
+
cms_qe/api/views.py,sha256=-Wn2paVsMVfErZOschb_xjYJhpe1-ACN7zqm3bm9vFk,769
|
|
18
18
|
cms_qe/boilerplates/bootstrap3/static/cms_qe/css/bootstrap-theme.css,sha256=xOpS-e_dER8z72w-qryCieOGysQI8cELAVt3MHG0phY,26132
|
|
19
19
|
cms_qe/boilerplates/bootstrap3/static/cms_qe/css/bootstrap-theme.css.map,sha256=cZQbJTuJQjdM1XuKhdRzSJ8hMRQ4up491P76Iq2_D1M,47706
|
|
20
20
|
cms_qe/boilerplates/bootstrap3/static/cms_qe/css/bootstrap-theme.min.css,sha256=ZT4HPpdCOt2lvDkXokHuhJfdOKSPFLzeAJik5U_Q-l4,23409
|
|
@@ -3959,7 +3959,7 @@ cms_qe_video/templates/cms_qe/video/video_source_file.html,sha256=QJF5fs88s9Fznp
|
|
|
3959
3959
|
cms_qe_video/templates/cms_qe/video/video_widget.html,sha256=Yumciq6bGlAYI1lYx5j9V6IF8QYrncNYygPTkXEz6Wk,925
|
|
3960
3960
|
cms_qe_video/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3961
3961
|
cms_qe_video/templatetags/cms_qe_video.py,sha256=NR_mGv91J0rEreZrQjCzaaXSrZsKvrSas12wMJ-Dg24,1168
|
|
3962
|
-
django_cms_qe-3.6.
|
|
3962
|
+
django_cms_qe-3.6.1.dist-info/licenses/LICENSE,sha256=5wLaeUil0gfU9p8C4zn2Yu_PvZBNieUoYl0z9FcFWdA,1521
|
|
3963
3963
|
example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3964
3964
|
example/urls.py,sha256=H-IJsRGFVZGw6FD9gvK-0B0dLeSOsduziHvDvcHCQZ0,399
|
|
3965
3965
|
example/wsgi.py,sha256=lCKhvtFZlorSIA8qYEqc3pZ1Oflrz_Tc696MWJ62ue4,396
|
|
@@ -3980,7 +3980,7 @@ test_selenium/pages/cms/__init__.py,sha256=_qe4YZYaQbrXp7Szmmeo4TUSkXlE5Rozu8E3t
|
|
|
3980
3980
|
test_selenium/pages/cms/login.py,sha256=UPzJQcYff8NUAT4nvmfQoJQxzOJyPrJ_cKtH35NVfNg,521
|
|
3981
3981
|
test_selenium/pages/cms/page.py,sha256=YQnpZkopfVnhoyQKpRDGqjNeV6xUl-pEHjEcZ9HRiPk,489
|
|
3982
3982
|
test_selenium/pages/cms/wizard.py,sha256=yatbXH-rf1ap4O1hY0I13WikM3zkm_NrAiSK6bqENIU,545
|
|
3983
|
-
django_cms_qe-3.6.
|
|
3984
|
-
django_cms_qe-3.6.
|
|
3985
|
-
django_cms_qe-3.6.
|
|
3986
|
-
django_cms_qe-3.6.
|
|
3983
|
+
django_cms_qe-3.6.1.dist-info/METADATA,sha256=1mPFRXB8pDwQu4galhjV6rJGrWldsksUZSK1KcZ1bkQ,5080
|
|
3984
|
+
django_cms_qe-3.6.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
3985
|
+
django_cms_qe-3.6.1.dist-info/top_level.txt,sha256=T4dauFwJy7FmxCy7WoQI3pPwiDessNB2LkfOAP76ssE,172
|
|
3986
|
+
django_cms_qe-3.6.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|