1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-09 14:28:03 +00:00
Commit Graph

18 Commits

Author SHA1 Message Date
Hidden Z
c6f6c0ce26 Use b32 address when verifying subdomain
This prevents situation when user registered 2nd level domain and then
tries to register a subdomain. In such case i2p router doesn't know yet
this 2nd level domain and cannot access it. Using b32 address avoids
such situation.
2015-10-27 19:42:07 +00:00
Hidden Z
9e4cf6273f More properly handle http errors when performing subdomain verify 2015-10-27 19:41:59 +00:00
Hidden Z
6e3862d7ab Convert tabs to spaces 2015-10-27 19:41:44 +00:00
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.
2014-10-15 19:15:33 +00:00
Hidden Z
6ac3284396 Fix undefined variable 2014-09-14 15:44:44 +00:00
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/
2013-09-27 18:19:49 +00:00
Hidden Z
43bcfec7ed Fix settings import
According to django 1.5 documentation, settings should be imported as
>>> from django.conf import settings
2013-09-27 18:19:49 +00:00
Hidden Z
5a61315d67 pyi2phosts/postkey/views.py: add i18n for SubdomainVerifyForm 2011-02-19 15:30:34 +00:00
Hidden Z
65759c762f pyi2phosts/postkey/views.py: add i18n 2011-02-19 14:58:51 +00:00
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.
2011-01-17 18:09:53 +00:00
Hidden Z
764e2e3f33 pyi2phosts/postkey/views.py: redefine is_valid() and log validation errors 2010-12-30 20:06:40 +00:00
Hidden Z
1a734f5af5 postkey/views.py: fill date_added field with UTC date 2010-11-15 19:02:56 +00:00
Hidden Z
a0bba86169 pyi2phosts/postkey/views.py: remove excessive import 2010-11-07 20:58:14 +00:00
Hidden Z
16c142a5c1 pyi2phosts/postkey/views.py: check for hostname presence in success() 2010-11-05 06:32:25 +00:00
Hidden Z
37994951c1 pyi2phosts/postkey/views.py: use redirect() instead of HttpResponseRedirect() 2010-11-05 06:31:47 +00:00
Hidden Z
dc02bc951c Revert "web/postkey/views.py: remove unneeded import"
This reverts commit 01964a33f8.

Whoops, this import is not unneeded!
2010-11-04 21:49:38 +00:00
Hidden Z
7ce4500b9c Fix "settings" import 2010-11-04 12:43:53 +00:00
Hidden Z
6fb4d60ce6 Rename web -> pyi2phosts 2010-11-04 12:41:42 +00:00