Commit Graph

1378 Commits

Author SHA1 Message Date
Tyler Todd
c00ddea2fc More page formatting
Added server-side logic for register.html validation
Keep form firelds on register.html in the event of wrong input fields to save users from retyping info
More button rounding
2023-02-13 03:57:21 +00:00
Kateřina Churanová
c23e89bde3
Merge branch 'PowerDNS-Admin:master' into shine/config_table_key_uniqueness 2023-02-09 12:29:14 +00:00
Vassilis Asteriou
0568a90ec1 Changed auto_ptr() logic to remove-then-add 2023-02-08 15:27:45 +02:00
Tyler Todd
d38a919644 Update yarn.lock packages 2023-02-06 15:49:39 +00:00
Tyler Todd
ac786f45be Remove btn-flat to convert to round buttons (first pass)
Convert col-xs-* to just col-* as part of bootstrap v3 -> v4
Convert box-* -> card-* as part of bootstrap v3 -> v4
Moved domain actions on main dashboard to a dropdown menu to avoid clutter
Added "Log Out" to top header left
Hid OTP on admin edit user to only show the disable card & options if the user account has OTP enabled
2023-02-06 15:45:13 +00:00
Tyler Todd
7f25e3b555 Initial go at upgrading from Bootstap v3 to v4 and to AdminLTE v3.2.0 2023-02-02 21:19:15 +00:00
Tyler Todd
e411bc9f19 Enable CAPTCHA 2023-01-30 22:46:59 +00:00
Matt Scott
c5b9e24604
Merge pull request #1366 from Ssshafi/master
Use SITE_NAME as title
2023-01-26 18:21:33 -05:00
Sshafi
91c1907486
Update login.html
Use SITE_NAME for login box title on login page (with default value).
This can be useful when using multiple powerdns admin in an organization.
2023-01-26 00:02:08 +01:00
Sshafi
b607c1b7ff
Update base.html
Use SITE_NAME for upper left title on base page.
This can be useful when using multiple powerdns admin in an organization.
2023-01-25 23:59:35 +01:00
Matt Scott
d50d57bc70
Merge pull request #1357 from pneb/patch-6
fix: Potential fix for a regex bug
2023-01-25 16:19:27 -05:00
Matt Scott
04ee128161 Merge branch 'master' of github.com:PowerDNS-Admin/PowerDNS-Admin 2023-01-24 05:46:15 -05:00
Matt Scott
51249aecd3
Merge pull request #1212 from corubba/feature/privacy-first
Privacy first
2023-01-24 05:34:30 -05:00
Matt Scott
948973ac83 Merge branch 'feature/privacy-first' 2023-01-24 05:32:38 -05:00
Matt Scott
0c42bdad5f
Merge pull request #1359 from Metrax/issue-1358
Fixing Wrapping in History Details Modal in Dashboard
2023-01-14 12:04:43 -05:00
Robert Walter
246ad7f7d2
Fixing Wrapping in History Details Modal in Dashboard
resolves #1358
2023-01-13 10:05:20 +01:00
Bernward Sanchez
18bc336d7a
Potential fix 2023-01-11 18:21:40 +08:00
Matt Scott
bb29c27430
Merge pull request #1354 from Metrax/support-pdns4.7
Support pdns4.7
2023-01-10 08:01:17 -05:00
Matt Scott
debeda5b74
Merge pull request #1340 from pneb/patch-5
patch(lib/utils.py): Fixes pretty_domain_name issue
2023-01-10 08:00:28 -05:00
Robert Walter
c02cb3b7fe
Model change: Changing domain model type variable to 8 chars
PowerDNS 4.7 is supporting 2 new zone types: "producer" & "consumer"
Due to the domain type variable is limited to 6 chars, PDA Zone update will fail if producer or cusomer zones exist.
To solve this problem, this commit increases the lenght of the domain model type variable to 8 chars.
2023-01-10 13:51:04 +01:00
Robert Walter
9088f93233
Upgrade Database: Changing domain table type column to 8 chars
PowerDNS 4.7 is supporting 2 new zone types: "producer" & "consumer"
Due to the domain type column is limited to 6 chars, PDA Zone update will fail if producer or cusomer zones exist.
To solve this problem, this commit increases the lenght of the domain type column to 8 chars.
2023-01-10 13:49:16 +01:00
Bernward Sanchez
b163e517bb
Update utils.py 2023-01-09 11:10:22 +08:00
Matt Scott
53f6f3186e
Merge pull request #1343 from trappiz/master
Bump alpine to 3.17 in dockerfile
2023-01-07 19:28:31 -05:00
Niklas Engvall
4de7bbe354 Use alpine 3.17 as base + pip fix to remove warnings 2023-01-06 16:43:48 +01:00
Niklas Engvall
7e973c7219 bump alpine to 3.15 2022-12-23 12:18:00 +01:00
Bernward Sanchez
c7eaec27d8
Update utils.py 2022-12-23 08:23:14 +08:00
Ymage
1d885278d4 Cosmetic 2022-12-22 22:55:05 +01:00
Ymage
7d153932b3 Fix back_populate relationships 2022-12-22 22:50:01 +01:00
Ymage
8dd03a4d85 Update tests fix
Fix migration init_db 'id'
Handle app context when needed
Fix conftest fixtures
Rearrange test Dockerfiles
Hide DeprecationWarning during pytest execution
Upgrade all python packages
2022-12-22 22:47:02 +01:00
Matt Scott
33ec2acd3f Added a GitHub labels configuration file. 2022-12-22 07:20:02 -05:00
Matt Scott
eb16353476 Testing new GitHub Dependabot configuration. 2022-12-22 06:20:12 -05:00
Matt Scott
32e19777cc Updating GitHub stale automation configuration to match new label schema. 2022-12-22 06:00:06 -05:00
corubba
8d849ee2a1 Cleanup
The `unit/apikey` directory is removed because it does not contain any
tests. Same for `unit/test_decorators.py`.
The `fixture` module is renamed to the special-name `conftest` [0] so
they are available in all tests without the need to import them. With
that in place, I removed all now unneeded or previously already unused
imports from the tests.
Also removed that wierd `sys.path` bit from `unit/zone/test_admin_apikey.py`,
no idea what that was originally intended for.

[0] https://docs.pytest.org/en/6.2.x/fixture.html#conftest-py-sharing-fixtures-across-multiple-files
2022-12-19 09:37:01 +01:00
corubba
e920bf5009 Fix broken code
PR #1089 is the culprit, as was already predicted in the review.
2022-12-19 09:37:01 +01:00
corubba
b9eb593acd Fix tests
Increased the version of pytest to make it work with py 3.10 [0].
The GET calls no longer return list but the object itself, fixed the
tests and assertions to account for that. The tests did not account for
the later added `allow_user_remove_domain` setting. And there were
issues with missing and non-stopped patchers/mocks.

Now all tests are at least passing.

[0] https://github.com/pytest-dev/pytest/pull/8540
2022-12-19 09:37:01 +01:00
corubba
44cf98a159 Fix test docker
The Dockerfile did not work as is, because the dependencies in
requirements.txt are newer than the stretch-image with its python v3.5
can support/run. Use stable debian with the lts nodejs instead, plus
had to add some libs to make the wheel build succeed.
jsonschema v4 breaks things, so its version needs to be pinned until
bravado is fixed [0].

[0] https://github.com/Yelp/bravado-core/pull/385/files#r731674447
2022-12-19 09:37:01 +01:00
Matt Scott
0404748e6e
Merge pull request #1333 from pneb/master
enhancement: Added 2 new files (auto-setup)
2022-12-15 06:40:32 -05:00
Bernward Sanchez
3aa6d1f258
Create setup_win.bat 2022-12-15 12:54:31 +08:00
Bernward Sanchez
644be65495
Create setup_linux.sh 2022-12-15 12:53:53 +08:00
Matt Scott
3a6d173d05
Merge pull request #1332 from PowerDNS-Admin/revert-1331-patch-4
Revert "enhancement(routes/index.py): OIDC supports HTTP Scheme now"
2022-12-14 20:38:15 -05:00
Matt Scott
89f3d4d01a
Revert "enhancement(routes/index.py): OIDC supports HTTP Scheme now" 2022-12-14 20:37:30 -05:00
Matt Scott
96a88d918c
Merge pull request #1331 from pneb/patch-4
enhancement(routes/index.py): OIDC supports HTTP Scheme now
2022-12-14 19:01:27 -05:00
Bernward Sanchez
f6c49c379d
Update index.py 2022-12-15 06:13:27 +08:00
Matt Scott
30ed68471e
Merge pull request #1322 from Metrax/master
Fixing Validation problem on LDAP form
2022-12-13 20:59:22 -05:00
Matt Scott
8373363c4d
Merge pull request #1323 from jbe-dw/fixLDAPDeprecatedOpt
Draft: Fix pyhton-ldap upgrade
2022-12-13 20:56:03 -05:00
Matt Scott
1a05518018
Merge pull request #1330 from caraar12345/aaroncarson/fix/1329
Fix #1329
2022-12-13 20:54:26 -05:00
Aaron Carson
ff671ebabe Fix 1329 2022-12-14 00:34:12 +00:00
Matt Scott
9a38e1758f
Merge pull request #1328 from Ssshafi/patch-1
Update login.html
2022-12-13 09:04:40 -05:00
Matt Scott
c03f799c4a
Merge pull request #1327 from dmcken/docs-updates
Docs updates
2022-12-13 08:20:27 -05:00
Sshafi
d0290ac469
Update login.html
Use SITE_NAME for login box title on login page.
This can be useful when using multiple powerdns admin in an organization.
2022-12-13 09:10:21 +01:00