prune_captcha 1.18.3__tar.gz → 1.18.5__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.
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/PKG-INFO +3 -1
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/README.md +2 -0
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha/static/prune_captcha/css/captcha.css +2 -2
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha/utils.py +9 -2
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha.egg-info/PKG-INFO +3 -1
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/pyproject.toml +1 -1
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/MANIFEST.in +0 -0
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha/__init__.py +0 -0
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha/apps.py +0 -0
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha/static/prune_captcha/js/captcha.js +0 -0
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha/templates/prune_captcha/captcha.html +0 -0
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha.egg-info/SOURCES.txt +0 -0
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha.egg-info/dependency_links.txt +0 -0
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha.egg-info/requires.txt +0 -0
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha.egg-info/top_level.txt +0 -0
- {prune_captcha-1.18.3 → prune_captcha-1.18.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: prune_captcha
|
3
|
-
Version: 1.18.
|
3
|
+
Version: 1.18.5
|
4
4
|
Summary: A tool to protect formulaire from spam.
|
5
5
|
Author-email: Arnout <bastien@prune.sh>
|
6
6
|
Project-URL: Made_by, https://prune.sh/
|
@@ -126,6 +126,8 @@ Important: You must import the static files (css, js) present in "prune_captcha/
|
|
126
126
|
|
127
127
|
| Version | Date | Notes |
|
128
128
|
| ------- | ---------- | ---------------------------------- |
|
129
|
+
| 1.18.5 | 2025-05-23 | ValueError fixed |
|
130
|
+
| 1.18.4 | 2025-05-23 | deleted var |
|
129
131
|
| 1.18.3 | 2025-05-22 | add puzzle info |
|
130
132
|
| 1.18.2 | 2025-05-22 | fix |
|
131
133
|
| 1.18.1 | 2025-05-22 | some improvements |
|
@@ -108,6 +108,8 @@ Important: You must import the static files (css, js) present in "prune_captcha/
|
|
108
108
|
|
109
109
|
| Version | Date | Notes |
|
110
110
|
| ------- | ---------- | ---------------------------------- |
|
111
|
+
| 1.18.5 | 2025-05-23 | ValueError fixed |
|
112
|
+
| 1.18.4 | 2025-05-23 | deleted var |
|
111
113
|
| 1.18.3 | 2025-05-22 | add puzzle info |
|
112
114
|
| 1.18.2 | 2025-05-22 | fix |
|
113
115
|
| 1.18.1 | 2025-05-22 | some improvements |
|
{prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha/static/prune_captcha/css/captcha.css
RENAMED
@@ -14,13 +14,13 @@
|
|
14
14
|
}
|
15
15
|
|
16
16
|
.puzzle-mask {
|
17
|
-
background-color:
|
17
|
+
background-color: whitesmoke;
|
18
18
|
position: absolute;
|
19
19
|
z-index: 1;
|
20
20
|
}
|
21
21
|
|
22
22
|
.puzzle-piece {
|
23
|
-
border: 1px solid
|
23
|
+
border: 1px solid whitesmoke;
|
24
24
|
position: absolute;
|
25
25
|
background-repeat: no-repeat;
|
26
26
|
z-index: 1;
|
@@ -38,8 +38,15 @@ def create_and_get_captcha(
|
|
38
38
|
|
39
39
|
|
40
40
|
def verify_captcha(request: HttpRequest) -> bool:
|
41
|
-
|
42
|
-
|
41
|
+
pos_x_answer_str = request.POST.get("pos_x_answer")
|
42
|
+
pos_y_answer_str = request.POST.get("pos_y_answer")
|
43
|
+
if pos_x_answer_str is None or pos_y_answer_str is None:
|
44
|
+
return False
|
45
|
+
try:
|
46
|
+
pos_x_answer = int(pos_x_answer_str)
|
47
|
+
pos_y_answer = int(pos_y_answer_str)
|
48
|
+
except ValueError:
|
49
|
+
return False
|
43
50
|
if pos_x_answer is None or pos_y_answer is None:
|
44
51
|
return False
|
45
52
|
puzzle = request.session.get("puzzle")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: prune_captcha
|
3
|
-
Version: 1.18.
|
3
|
+
Version: 1.18.5
|
4
4
|
Summary: A tool to protect formulaire from spam.
|
5
5
|
Author-email: Arnout <bastien@prune.sh>
|
6
6
|
Project-URL: Made_by, https://prune.sh/
|
@@ -126,6 +126,8 @@ Important: You must import the static files (css, js) present in "prune_captcha/
|
|
126
126
|
|
127
127
|
| Version | Date | Notes |
|
128
128
|
| ------- | ---------- | ---------------------------------- |
|
129
|
+
| 1.18.5 | 2025-05-23 | ValueError fixed |
|
130
|
+
| 1.18.4 | 2025-05-23 | deleted var |
|
129
131
|
| 1.18.3 | 2025-05-22 | add puzzle info |
|
130
132
|
| 1.18.2 | 2025-05-22 | fix |
|
131
133
|
| 1.18.1 | 2025-05-22 | some improvements |
|
@@ -26,7 +26,7 @@ classifiers = [
|
|
26
26
|
keywords = ["captcha", "django", "code-quality"]
|
27
27
|
urls = {Made_by = "https://prune.sh/"}
|
28
28
|
name = "prune_captcha"
|
29
|
-
version = "1.18.
|
29
|
+
version = "1.18.5"
|
30
30
|
description = "A tool to protect formulaire from spam."
|
31
31
|
readme = "README.md"
|
32
32
|
dependencies = [
|
File without changes
|
File without changes
|
File without changes
|
{prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha/static/prune_captcha/js/captcha.js
RENAMED
File without changes
|
{prune_captcha-1.18.3 → prune_captcha-1.18.5}/prune_captcha/templates/prune_captcha/captcha.html
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|