741 Commits

Author SHA1 Message Date
Thomas Waldmann
4589dd512b fix session cookie behaviour to be more private for not logged-in users, fixes #96
the bug was that it used a permanent cookie for not-logged in users and only switched it to
a session cookie when you logged in (and did not check the remember me checkbox).

now it uses (non-permanent) session cookies by default and switches to the permanent cookie
only if you tell so when logging in and checking that checkbox.
2013-11-28 09:14:16 +01:00
Thomas Waldmann
9a8163de97 update docs about rDNS 2013-11-27 08:38:41 +01:00
Thomas Waldmann
091f3d42e6 cosmetics for rDNS display on hosts overview view 2013-11-27 08:23:35 +01:00
Thomas Waldmann
6b9c7e9511 add reverse dns lookup results for viewer's current IPs to session, show on hosts overview view (see panel at lower right)
not showing it in home view's jumbotron due to potential cosmetic issues
2013-11-27 08:16:49 +01:00
Thomas Waldmann
71509fe935 fix typo in class name 2013-11-27 07:23:04 +01:00
Thomas Waldmann
0e8f318628 add reverse dns lookup code 2013-11-27 07:14:39 +01:00
ThomasWaldmann
9294c859db Merge pull request #94 from marcinkuzminski/patch-1
update admin.rst about SECRET_KEY
2013-11-25 23:48:59 -08:00
Thomas Waldmann
aa610e9c3a implement "update other services", with tests, no ui yet
(can be used when adding the records via django admin)
2013-11-26 08:10:05 +01:00
Thomas Waldmann
7566e6a5e3 implement a dyndns2 updater + tests 2013-11-26 03:03:51 +01:00
Marcin Kuźmiński
8376b1670d Update admin.rst
Added required setting of SECRET_KEY via settings_local.py into development quick guide.
2013-11-25 23:49:47 +01:00
Thomas Waldmann
886bad5fbe warn (using red text colour) about new secret generation 2013-11-25 18:34:50 +01:00
Thomas Waldmann
ec10cd2a92 be more clear for both use cases for generating a new secret (initial configuration / forgot secret) 2013-11-25 01:44:23 +01:00
Thomas Waldmann
cb643d5782 update changelog 2013-11-24 18:01:49 +01:00
Thomas Waldmann
9ae7a7fabe updated docs 2013-11-24 12:17:56 +01:00
Thomas Waldmann
e9605535b8 add counters for client and server faults (per host) 2013-11-24 11:42:59 +01:00
Thomas Waldmann
1447b670f5 avoid double lookup of the host object
as we have to look it up for auth anyway, return it, so we can continue using it.
2013-11-24 11:09:38 +01:00
Thomas Waldmann
087c1d2c93 deduplicated fqdn lookup uniqueness check, fixed _update return values (must be Response objects, not bool) 2013-11-24 10:43:15 +01:00
Thomas Waldmann
9cd1b7d9f9 blacklist validator: fix validation error msg
do not talk about "domain" if we check a hostname.
also tell it is because of the blacklist.
2013-11-24 09:50:57 +01:00
Thomas Waldmann
d83df3ead1 use get_user_model and AUTH_USER_MODEL 2013-11-24 09:37:47 +01:00
Thomas Waldmann
a1210b21eb cleanup created_by in models
looks like there was some reference to settings.AUTH_USER_MODEL (which is undefined)

brought Host and Domain model in sync for some fields
2013-11-24 08:34:01 +01:00
Thomas Waldmann
ce83e293bb support notfqdn api result code
we do not really need it as far as the service is concerned (we would give some other valid failure result code),
but it might help to user to more quickly find the mistake in his client configuration.
2013-11-24 06:42:55 +01:00
Thomas Waldmann
e0c83b78b7 clarify hostname in querystring must by same as username used for http basic auth 2013-11-24 06:20:23 +01:00
Thomas Waldmann
068a27d86c add help for adding a host, cosmetic changes to adding a domain help 2013-11-24 05:43:52 +01:00
Thomas Waldmann
9c82ec021f remove comment from Host __unicode__() for consistency (we do not have the comment in Domain __unicode__() either) 2013-11-24 05:23:20 +01:00
Thomas Waldmann
dd09b6b5af nameserver update key / secret terminology cleanup
key = secret + algorithm
2013-11-24 05:04:07 +01:00
Thomas Waldmann
972a411ef4 make adding a domain workflow more similar to adding a host
don't ask for the secret in the first form, just autocreate one and show the configuration example with it.
2013-11-24 04:14:31 +01:00
Thomas Waldmann
49007c60bd less top/bottom padding for ip address jumbotron 2013-11-23 14:50:11 +01:00
Thomas Waldmann
5624f3b95f hosts overview: create thead in same way as for domain overview (fixes small visual difference) 2013-11-23 14:07:17 +01:00
Thomas Waldmann
ed074dd33b catch exception when trying to delete a host we are not allowed to modify anyway 2013-11-23 02:57:15 +01:00
Thomas Waldmann
ab421fb686 models: use sane field lengths
for unique fields there seems to be a limit of 255 chars (not: 256)

some fields are much less than we initially had
2013-11-23 02:51:18 +01:00
Thomas Waldmann
98db942e3e use bootstrap 3.0.2 from cdn 2013-11-23 00:54:03 +01:00
Thomas Waldmann
f2aca63d2d fix typo 2013-11-22 04:15:51 +01:00
Thomas Waldmann
a0a33f36d3 add some hints to the login view. Fixes #89 2013-11-22 03:55:06 +01:00
Thomas Waldmann
be43b61a97 prettier and more clear login screen
separate the forgot pw / register stuff from the usual login form

use more button style
2013-11-22 03:39:47 +01:00
Thomas Waldmann
ae260e2725 prettier remote login selection. Fixes #90 2013-11-21 14:19:03 +01:00
Thomas Waldmann
a0061aaa24 update docs about IP detection 2013-11-21 10:42:27 +01:00
Thomas Waldmann
6f98bdb8b6 make a .coveragerc, move config there, some no cover declarations / exclude some code 2013-11-21 09:45:14 +01:00
Thomas Waldmann
c53bef5cdb add coveralls badge to README, coveralls debugging 2013-11-21 04:46:00 +01:00
Thomas Waldmann
0626bf42cb travis.yml: add coveralls for coveralls.io, run tests with coverage 2013-11-21 04:32:02 +01:00
Thomas Waldmann
1a02925bfa minor changes: fix typo, move comment to right place 2013-11-21 04:10:04 +01:00
Thomas Waldmann
2b5fdacadc status view is expensive (DB accesses to build statistics), make it logged-in only 2013-11-21 04:07:27 +01:00
Thomas Waldmann
ae9c2f29d0 more tests, better coverage 2013-11-21 04:02:16 +01:00
Thomas Waldmann
11a6c0177e README: add some badges 2013-11-19 08:01:43 +01:00
Thomas Waldmann
d0cabca1c5 travis: we use py 2.7 syntax, so 2.6 can't work - remove 2.6 2013-11-19 07:39:15 +01:00
Thomas Waldmann
4e6029cd93 travis: try using --upgrade to get the py.test version conflict sorted 2013-11-19 07:18:07 +01:00
Thomas Waldmann
bff859e904 travis: remove quiet from pip install for debugging issues on travis-ci 2013-11-19 07:09:14 +01:00
Thomas Waldmann
8aef8f9417 improved .travis.yml 2013-11-19 06:35:57 +01:00
Thomas Waldmann
1f38f19d35 checking if even 2.5 works :D (this is mostly to trigger a travis-ci initial run) 2013-11-19 06:13:06 +01:00
Thomas Waldmann
4c4e7aa83a adding a travis-ci configuration 2013-11-19 06:09:20 +01:00
Thomas Waldmann
ca43191890 move footer contents to base_footer.html, so it is customizable 2013-11-18 09:10:04 +01:00