prune_captcha 1.18.1__tar.gz → 1.18.3__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.1 → prune_captcha-1.18.3}/PKG-INFO +3 -1
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/README.md +2 -0
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/prune_captcha/static/prune_captcha/css/captcha.css +4 -0
- prune_captcha-1.18.3/prune_captcha/templates/prune_captcha/captcha.html +10 -0
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/prune_captcha/utils.py +2 -2
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/prune_captcha.egg-info/PKG-INFO +3 -1
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/pyproject.toml +1 -1
- prune_captcha-1.18.1/prune_captcha/templates/prune_captcha/captcha.html +0 -7
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/MANIFEST.in +0 -0
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/prune_captcha/__init__.py +0 -0
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/prune_captcha/apps.py +0 -0
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/prune_captcha/static/prune_captcha/js/captcha.js +0 -0
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/prune_captcha.egg-info/SOURCES.txt +0 -0
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/prune_captcha.egg-info/dependency_links.txt +0 -0
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/prune_captcha.egg-info/requires.txt +0 -0
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/prune_captcha.egg-info/top_level.txt +0 -0
- {prune_captcha-1.18.1 → prune_captcha-1.18.3}/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.3
|
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.3 | 2025-05-22 | add puzzle info |
|
130
|
+
| 1.18.2 | 2025-05-22 | fix |
|
129
131
|
| 1.18.1 | 2025-05-22 | some improvements |
|
130
132
|
| 1.18.0 | 2025-05-22 | create "addHiddenInputs" func |
|
131
133
|
| 1.17.0 | 2025-05-21 | fix pos_answer |
|
@@ -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.3 | 2025-05-22 | add puzzle info |
|
112
|
+
| 1.18.2 | 2025-05-22 | fix |
|
111
113
|
| 1.18.1 | 2025-05-22 | some improvements |
|
112
114
|
| 1.18.0 | 2025-05-22 | create "addHiddenInputs" func |
|
113
115
|
| 1.17.0 | 2025-05-21 | fix pos_answer |
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{% load static %}
|
2
|
+
|
3
|
+
<div class="prune-captcha">
|
4
|
+
<p class="puzzle-info">Veuillez glisser la pièce au bon emplacement</p>
|
5
|
+
<div class="puzzle-container" style="width: {{ puzzle.width }}px; height: {{ puzzle.height }}px; background-image: url('{% static puzzle.image %}'); background-size: {{ puzzle.width }}px {{ puzzle.height }}px;">
|
6
|
+
<div class="puzzle-background" style="background-image: url('{% static puzzle.image %}'); background-size: {{ puzzle.width }}px {{ puzzle.height }}px;"></div>
|
7
|
+
<div class="puzzle-mask" style="top: {{ puzzle.pos_y_solution }}px; left: {{ puzzle.pos_x_solution }}px; width: {{ puzzle.piece_width }}px; height: {{ puzzle.piece_height }}px;"></div>
|
8
|
+
<div class="puzzle-piece" style="background-image: url('{% static puzzle.image %}'); background-size: {{ puzzle.width }}px {{ puzzle.height }}px; background-position: -{{ puzzle.pos_x_solution }}px -{{ puzzle.pos_y_solution }}px; width: calc({{ puzzle.piece_width }}px - 1px); height: calc({{ puzzle.piece_height }}px - 1px); top: {{ puzzle.piece_pos_y }}px; left: {{ puzzle.piece_pos_x }}px;"></div>
|
9
|
+
</div>
|
10
|
+
</div>
|
@@ -44,8 +44,8 @@ def verify_captcha(request: HttpRequest) -> bool:
|
|
44
44
|
return False
|
45
45
|
puzzle = request.session.get("puzzle")
|
46
46
|
if (
|
47
|
-
abs(puzzle
|
48
|
-
and abs(puzzle
|
47
|
+
abs(puzzle["pos_x_solution"] - pos_x_answer) <= puzzle["precision"]
|
48
|
+
and abs(puzzle["pos_y_solution"] - pos_y_answer) <= puzzle["precision"]
|
49
49
|
):
|
50
50
|
return True
|
51
51
|
else:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: prune_captcha
|
3
|
-
Version: 1.18.
|
3
|
+
Version: 1.18.3
|
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.3 | 2025-05-22 | add puzzle info |
|
130
|
+
| 1.18.2 | 2025-05-22 | fix |
|
129
131
|
| 1.18.1 | 2025-05-22 | some improvements |
|
130
132
|
| 1.18.0 | 2025-05-22 | create "addHiddenInputs" func |
|
131
133
|
| 1.17.0 | 2025-05-21 | fix pos_answer |
|
@@ -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.3"
|
30
30
|
description = "A tool to protect formulaire from spam."
|
31
31
|
readme = "README.md"
|
32
32
|
dependencies = [
|
@@ -1,7 +0,0 @@
|
|
1
|
-
{% load static %}
|
2
|
-
|
3
|
-
<div class="puzzle-container" style="width: {{ puzzle.width }}px; height: {{ puzzle.height }}px; background-image: url('{% static puzzle.image %}'); background-size: {{ puzzle.width }}px {{ puzzle.height }}px;">
|
4
|
-
<div class="puzzle-background" style="background-image: url('{% static puzzle.image %}'); background-size: {{ puzzle.width }}px {{ puzzle.height }}px;"></div>
|
5
|
-
<div class="puzzle-mask" style="top: {{ puzzle.pos_y_solution }}px; left: {{ puzzle.pos_x_solution }}px; width: {{ puzzle.piece_width }}px; height: {{ puzzle.piece_height }}px;"></div>
|
6
|
-
<div class="puzzle-piece" style="background-image: url('{% static puzzle.image %}'); background-size: {{ puzzle.width }}px {{ puzzle.height }}px; background-position: -{{ puzzle.pos_x_solution }}px -{{ puzzle.pos_y_solution }}px; width: calc({{ puzzle.piece_width }}px - 1px); height: calc({{ puzzle.piece_height }}px - 1px); top: {{ puzzle.piece_pos_y }}px; left: {{ puzzle.piece_pos_x }}px;"></div>
|
7
|
-
</div>
|
File without changes
|
File without changes
|
File without changes
|
{prune_captcha-1.18.1 → prune_captcha-1.18.3}/prune_captcha/static/prune_captcha/js/captcha.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|