1151 Commits

Author SHA1 Message Date
Thomas Waldmann
1a8192b4bc catch exception for invalid http basic auth strings, fixes #401 2019-04-04 00:13:34 +02:00
TW
53cf7ee6dd
Merge pull request #400 from nsupdate-info/setuptools-scm
Use setuptools-scm for git based versions
2019-04-03 23:58:14 +02:00
TW
9a476c6c84
Merge pull request #402 from ThomasWaldmann/django22
test on django 2.2
2019-04-03 23:57:50 +02:00
Thomas Waldmann
4e97f46e91 test on django 2.2 2019-04-03 18:16:14 +02:00
Thomas Waldmann
3036d9a27d pep8 checker: do not recurse into .eggs/
we do not want to test setuptools_scm for pep8 issues.
2019-04-03 18:10:40 +02:00
Fabian Weisshaar
ef7a9ec539 Use setuptools-scm for git based versions 2018-12-28 20:40:34 +01:00
Fabian Weisshaar
80033041e9 Add A Well-Known URL for Changing Passwords
based on https://wicg.github.io/change-password-url/index.html
2018-12-28 20:36:45 +01:00
Fabian Weisshaar
8214842dc9 Add rel="noopener" to target="_blank" links 2018-12-28 20:36:45 +01:00
TW
d1692e305c
Merge pull request #396 from ThomasWaldmann/rel012
release 0.12
2018-11-18 23:57:38 +01:00
Thomas Waldmann
a61553afc1 setup.cfg: remove minversion, version comparison broken
ERROR: /home/travis/build/nsupdate-info/nsupdate.info/setup.cfg:28: requires pytest-3.6, actual pytest-3.10.0'
2018-11-18 23:27:26 +01:00
Thomas Waldmann
e43ffd917f update setup.cfg about pytest >= 3.6
see requirements.d/dev.txt
2018-11-18 22:53:28 +01:00
Thomas Waldmann
c6983124b5 add release dates for 0.10/11/12 2018-11-18 22:35:44 +01:00
Thomas Waldmann
067bf17f2f use raw string for MAILDOMAIN_BLACKLIST (regexes) 2018-11-18 22:20:52 +01:00
Thomas Waldmann
a34be2039c update (c) year 2018-11-18 22:10:56 +01:00
Thomas Waldmann
b42d472a06 update CHANGES 2018-11-18 22:02:51 +01:00
TW
14d7a4e800
Merge pull request #395 from ThomasWaldmann/fix-394
avoid invalid IP address crash, fixes #394
2018-11-18 21:02:11 +01:00
Thomas Waldmann
b8a3e3a2c7 avoid invalid IP address crash, fixes #394 2018-11-18 20:48:26 +01:00
TW
0064f1491d
Merge pull request #393 from elnappo/368
Migrate to font-awesome v5, fix #368
2018-11-13 15:52:12 +01:00
Fabian Weisshaar
66fdff9f40 Migrate to font-awesome v5, fix #368 2018-11-13 15:37:18 +01:00
TW
0ef3082a61
Merge pull request #392 from ThomasWaldmann/fix-urls
fixing login.urls
2018-11-05 02:12:12 +01:00
Thomas Waldmann
05d5a75c40 fixing login.urls 2018-11-05 02:01:57 +01:00
TW
a8128fe9e3
Merge pull request #364 from ThomasWaldmann/py37
py37 and django2 fixes
2018-11-04 21:14:15 +01:00
TW
5bb265ab3b
Merge pull request #389 from ThomasWaldmann/suffix-hint
zone creation: add hint about public suffix list
2018-11-04 21:13:07 +01:00
Thomas Waldmann
7b408c3190 zone creation: add hint about public suffix list 2018-11-04 20:47:13 +01:00
TW
2d738e3e13
Merge pull request #385 from ThomasWaldmann/config-help
Config help
2018-10-21 17:07:24 +02:00
Thomas Waldmann
6ecee32398 use new MIDDLEWARE setting (since Django 1.10)
MIDDLEWARE_CLASSES was removed in Django 2.0.
2018-10-19 23:37:29 +02:00
Thomas Waldmann
9a6772b74a django 2.0 does not have these view functions any more, use classes 2018-10-19 22:58:41 +02:00
Thomas Waldmann
896531276f django 2.0 does not allow giving a 3-tuple to include() 2018-10-19 22:29:18 +02:00
Thomas Waldmann
d8bb177301 django 2.0 requires on_delete arg for ForeignKey/OneToOneField
the default in django 1.11 is models.CASCADE.

note: updated migrations, the models already had the required change.
2018-10-19 22:05:35 +02:00
Thomas Waldmann
fb0967c0ec setup.py: don't require a specific Django version, so 1.1 and 2.x works
also add py37 to pypi metadata.
2018-10-19 22:05:35 +02:00
Thomas Waldmann
04c7d35e0e add py37 / Django 2.1 to travis, restructure matrix 2018-10-19 22:05:35 +02:00
Thomas Waldmann
97ce91da86 add tab for dyndnsc 2018-10-19 21:24:38 +02:00
Thomas Waldmann
d2d535d32d add EdgeOS configuration help, see #86 2018-10-19 21:23:19 +02:00
Thomas Waldmann
1856fc9eb0 add speedport hybrid configuration help, fixes #286 2018-10-19 21:11:12 +02:00
TW
c93daae899
Merge pull request #384 from ThomasWaldmann/simple-error-views
use error views without templating, fixes #365
2018-10-19 20:07:16 +02:00
TW
667d4a4a29
Merge pull request #382 from ThomasWaldmann/init-timestamps
new host creation: set update timestamps to current time, fixes #357
2018-10-19 20:06:56 +02:00
TW
6bd52d7f00
Merge pull request #383 from ThomasWaldmann/default-session-expiry
shorter default session expiry, fixes #381
2018-10-19 20:06:22 +02:00
Thomas Waldmann
70c9f9e24a use error views without templating, fixes #365 2018-10-19 00:50:50 +02:00
Thomas Waldmann
d494b41a9e shorter default session expiry, fixes #381
otherwise too many not-expired sessions accumulate in the session store.
2018-10-18 23:32:54 +02:00
Thomas Waldmann
18d5078b38 new host creation: set update timestamps to current time, fixes #357 2018-10-18 23:26:04 +02:00
TW
7ba8b6f2fa
Merge pull request #380 from ThomasWaldmann/reduce-db-accesses
session engine: remove hardcoded db session engine, use SESSION_ENGINE
2018-10-18 16:06:02 +02:00
Thomas Waldmann
55af9068fd session engine: remove hardcoded db session engine, use SESSION_ENGINE 2018-10-18 15:46:14 +02:00
TW
e2ea05be04
Merge pull request #377 from ThomasWaldmann/fix-crash
add ugly workaround for crash in django-admin users --stale-check
2018-10-14 15:58:30 +02:00
TW
bd0fa0f040
Merge pull request #375 from ThomasWaldmann/validate-registration-email
validate email address in registration form
2018-10-14 15:16:50 +02:00
Thomas Waldmann
f4e320aace add ugly workaround for crash in django-admin users --stale-check
i tried repr(user), but somehow this did not help.

Traceback (most recent call last):
  File "/srv/nsupdate.info/env/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/srv/nsupdate.info/repo/nsupdate/management/commands/users.py", line 85, in handle
    self.stdout.write(log_msg)
  File "/srv/nsupdate.info/env/lib/python3.5/site-packages/django/core/management/base.py", line 110, in write
    self._out.write(force_str(style_func(msg)))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1-2: ordinal not in range(128)
2018-10-14 15:16:28 +02:00
Thomas Waldmann
7dcf5a22bb validate domain of email address in registration form, fixes #284
- via DNS (MX, A/AAAA records)
- against blacklist with regexes

This is implemented because without it, postmasters get tons of mailer daemon
emails each day, just because emails are invalid, domain has no mx, ...
2018-10-14 14:52:52 +02:00
TW
90e59c7a89
Merge pull request #367 from ThomasWaldmann/http-error
http error templates simplified, catch session-saving OperationalError
2018-10-01 17:21:14 +02:00
TW
5d25e6b7a3
Merge pull request #371 from ThomasWaldmann/fix-stale-users-check
Fix stale users check
2018-10-01 16:50:08 +02:00
TW
3fc43f40ab
Merge pull request #370 from ThomasWaldmann/upgrade-static
upgrade jquery from 3.2.1 to 3.3.1, fixes #366
2018-10-01 16:09:36 +02:00
Thomas Waldmann
92211b0402 django-admin.py users: avoid unicode issues by using %r, fixes #350
non-ascii user names crashed the log output.
2018-10-01 15:52:49 +02:00