Hidden Z
6045b31350
Fix bug in subdomain verification
...
When there is verification error and "reason" is present, no reply was
returned to client causing django exception:
ValueError: The view pyi2phosts.postkey.views.subdomain didn't return an
HttpResponse object.
10 years ago
Hidden Z
6ac3284396
Fix undefined variable
10 years ago
Hidden Z
34d3243fcc
Use RequestContext in all render_to_response()
...
We have {% csrf_token %} in a templates, but the context in
render_to_response() does not provide the value.
https://docs.djangoproject.com/en/1.5/ref/contrib/csrf/
11 years ago
Hidden Z
43bcfec7ed
Fix settings import
...
According to django 1.5 documentation, settings should be imported as
>>> from django.conf import settings
11 years ago
Hidden Z
5a61315d67
pyi2phosts/postkey/views.py: add i18n for SubdomainVerifyForm
14 years ago
Hidden Z
65759c762f
pyi2phosts/postkey/views.py: add i18n
14 years ago
Hidden Z
0007450844
Implement 2nd-level domain verification when adding a subdomain
...
If user wants to register a subdomain, he must prove he is owner of
2nd-level domain. He must create a file with random name generated by us
in webserver's document root in 2nd-level domain. Then we trying to
fetch this file. If it success, registration gets accepted.
14 years ago
Hidden Z
764e2e3f33
pyi2phosts/postkey/views.py: redefine is_valid() and log validation errors
14 years ago
Hidden Z
1a734f5af5
postkey/views.py: fill date_added field with UTC date
14 years ago
Hidden Z
a0bba86169
pyi2phosts/postkey/views.py: remove excessive import
14 years ago
Hidden Z
16c142a5c1
pyi2phosts/postkey/views.py: check for hostname presence in success()
14 years ago
Hidden Z
37994951c1
pyi2phosts/postkey/views.py: use redirect() instead of HttpResponseRedirect()
14 years ago
Hidden Z
dc02bc951c
Revert "web/postkey/views.py: remove unneeded import"
...
This reverts commit 01964a33f8
.
Whoops, this import is not unneeded!
14 years ago
Hidden Z
7ce4500b9c
Fix "settings" import
14 years ago
Hidden Z
6fb4d60ce6
Rename web -> pyi2phosts
14 years ago
Hidden Z
f63768095d
Revert "web: avoid importing or accessing modules using "web.*""
...
This reverts commit d50bb7a66f
.
Conflicts:
web/settings.py
Do imports from pyi2phosts.*
14 years ago
Hidden Z
d50bb7a66f
web: avoid importing or accessing modules using "web.*"
14 years ago
Hidden Z
01964a33f8
web/postkey/views.py: remove unneeded import
14 years ago
Hidden Z
c0b11b5efe
web/postkey/views.py: add submission logging
14 years ago
Hidden Z
5311169c37
web/postkey/views.py: reorder imports
14 years ago
Hidden Z
d6881adba5
web/postkey/views.py: fix typo
14 years ago
Hidden Z
d6dfee3f78
web/postkey/views.py: allow only 2-level domains
...
Until we haven't implemented subdomain auth, reject subdomains
registration via webinterface et all.
14 years ago
Hidden Z
390ab411f7
web/postkey/views.py: add additional validation set for hostnames
...
Disallow registering set of hostnames intended for i2p project use.
14 years ago
Hidden Z
e44be42738
web/postkey/views.py: pass "title" to renderer
14 years ago
Hidden Z
dd498acf04
web/postkey/views.py: remove hash uniqueness check
...
Not needed until it moved into validation.py
14 years ago
Hidden Z
2769f0d4bc
Move validation functions to separate module
14 years ago
Hidden Z
150de19f32
web/postkey/views.py: fix typo
14 years ago
Hidden Z
5cb9d1943a
web/postkey/views.py: avoid adding non-unique hashes
14 years ago
Hidden Z
85981abf58
postkey/views.py: add docstrings
14 years ago
Hidden Z
17db1b07fd
postkey/views.py: use wingets in AddForm
14 years ago
Hidden Z
548ad715aa
postkey/views.py: add "description" field in "addkey" view
14 years ago
Hidden Z
e191306c7e
postkey: add "success" view
14 years ago
Hidden Z
60ba81d91c
postkey: rename "index" to "addkey"
14 years ago
Hidden Z
329ad74cbe
web/postkey/views.py: implement base64 hash validation
14 years ago
Hidden Z
aee0c2e34a
views.py: implement hostname checks according to I2P Naming Rules
...
http://www.i2p2.i2p/naming.html
14 years ago
Hidden Z
7434e4c8c8
Add initial urls.py and views.py
14 years ago