Commit Graph

111654 Commits

Author SHA1 Message Date
Michal Čihař
5a401b192e Changelog entry for #6197 and #13787
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-02 08:40:14 +01:00
Maurício Meneghini Fauth
96ba136b44
Merge pull request #13785 from mauriciofauth/templates
Port templates to Twig and remove PHP templates support
2017-11-02 00:04:02 -02:00
Maurício Meneghini Fauth
38646a32f2
Fix typo in privileges/resource_limits template
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-11-01 21:31:04 +00:00
Michal Čihař
0fdc80ba9f Merge branch 'QA_4_7' 2017-11-01 18:14:03 +01:00
Michal Čihař
45d1924e70
Merge pull request #13787 from nijel/second-factor
Second authentication factor
2017-11-01 18:13:12 +01:00
Michal Čihař
947c1ace03 Share code for getting server URL and use it in 2FA as well
This way multiple phpMyAdmin installations can be identified.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:55:48 +01:00
Michal Čihař
c5b0da38cd Properly test second factor check
The default code does session caching, we want to avoid it in the tests.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:35:12 +01:00
Michal Čihař
75c7d9b995 Install optional dependencies on Scrutinizer
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:39 +01:00
Michal Čihař
2af38a3de8 Improved FIDO U2F error reporting
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:39 +01:00
Michal Čihař
e67ea08eae Properly update FIDO U2F counter on login
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:39 +01:00
Michal Čihař
c64e52c3c0 Test registration and authentication for FIDO U2F
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:39 +01:00
Michal Čihař
d6d84a7607 Share code for error report in second factor
...and test it.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:39 +01:00
Michal Čihař
0d14ba065c Share and test code for listing backends
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:39 +01:00
Michal Čihař
dd3154b103 Test check method for simple second factor
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:39 +01:00
Michal Čihař
b5e5f4e8c8 Simplify second factor auth API
We now only pass SecondFactor object to plugins, not individual
parameters.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:39 +01:00
Michal Čihař
540b78dc2e Add support for FIDO U2F authentication
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:31 +01:00
Michal Čihař
047a6ac3f7 Add documentation for second authentication factor
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:31 +01:00
Michal Čihař
8c9abb9888 Add configuration for second authentication factor
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:31 +01:00
Michal Čihař
869131f59c Add support for HOTP and TOTP authentication
This supports Google Authenticator and similar applications.

Issue #6197

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:18 +01:00
Michal Čihař
a646d4314e Add generic interface for second authentication factor
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 16:34:14 +01:00
Maurício Meneghini Fauth
3bb5e0d732 Fix wrong incremental order
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-11-01 12:44:56 -02:00
Maurício Meneghini Fauth
569ee91f2a Merge branch 'master' into templates
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-11-01 12:06:09 -02:00
Weblate
069cb028a8 Merge remote-tracking branch 'origin/master' 2017-11-01 10:24:59 +01:00
Jira Aphisitworachorch
78b21da312 Translated using Weblate (Thai)
Currently translated at 28.3% (916 of 3231 strings)

[CI skip]
2017-11-01 10:24:58 +01:00
Weblate
230fdee4b2 Merge remote-tracking branch 'origin/QA_4_7' into QA_4_7 2017-11-01 10:24:56 +01:00
Jira Aphisitworachorch
0afdf4e921 Translated using Weblate (Thai)
Currently translated at 28.8% (926 of 3205 strings)

[CI skip]
2017-11-01 10:24:55 +01:00
Michal Čihař
c50bad8fa5 Merge branch 'QA_4_7' 2017-11-01 10:24:17 +01:00
Michal Čihař
5aa9727eb0 Clarify comment and add another host to ignore list
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-11-01 10:24:09 +01:00
Michal Čihař
931c1c7f72 Merge branch 'QA_4_7' 2017-10-31 19:55:06 +01:00
Michal Čihař
8ed94542c0 Workaround SNI problems on readthedocs.org
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-31 19:54:48 +01:00
Michal Čihař
a513a7550a Propagate possible failure from saving prefs
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-31 16:13:02 +01:00
Michal Čihař
6b8a9b7aec Decode user preferences as array
We really want an array here, not an object. Type casting to array helps
only for top level element.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-31 13:32:51 +01:00
Michal Čihař
28ade643cf Add Util_showDocu Twig tag
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-31 13:32:51 +01:00
Michal Čihař
08ce2fb122 Remove dubugging code
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 14:43:14 +01:00
Michal Čihař
0ccaf0ac91 Use templates for rendering header and footer of login page
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 14:40:44 +01:00
Michal Čihař
aebe2069ce Add support for providing fallback images in Theme class
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 14:24:13 +01:00
Michal Čihař
579b1275cf Move login page response logic to the Response class
It really more belongs there and might be easier reused.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 14:24:07 +01:00
Michal Čihař
e19f3599a4 Remove not needed plugin manager for authentication
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 14:03:51 +01:00
Michal Čihař
f859a9701d Rewrite selection of tables with overhead
Avoid using inline generated javascript, use CSS selectors instead.

Issue #12782

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 12:19:38 +01:00
Michal Čihař
23b07d4366 Correctly render html formatted variables
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 11:27:04 +01:00
Michal Čihař
2bb01ef0a7 Share code for row filtering
Make it generic so that it works in most cases and fixes does not have
to be implemented multiple times.

Issue #13517

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 11:25:51 +01:00
Michal Čihař
61c3aeeb5d Remove javascript hover
It is already handled by CSS and this code is commented out.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 10:32:27 +01:00
Michal Čihař
b0421d7d8c Merge branch 'QA_4_7' 2017-10-30 10:28:23 +01:00
Michal Čihař
7a17da0f57 Fixed check all interaction with filtering
- check all select only filtered rows
- the hidden rows are automatically unselected
- the check all state is updated according to filtering

Fixes #13517

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 10:26:03 +01:00
Michal Čihař
8fa32adb4e Fix handling of initial letter in privileges
Fixes #13783

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 09:36:11 +01:00
Michal Čihař
aa9da566a6 Define specific_db/specific_table outsite is_grant scope
Fixes #13784

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 09:34:05 +01:00
Michal Čihař
a798a9c31e Merge branch 'QA_4_7' 2017-10-30 09:27:34 +01:00
Michal Čihař
8109763b75 Remove not needed CSS for span elements
These do not have any border by default, so there is no need to remove it.

Issue #13777

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 09:26:37 +01:00
Michal Čihař
43cbcf6bd0 Remove unused class
Issue #13777

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 09:23:49 +01:00
Michal Čihař
636b22cb06 Remove clearright class
This element is currently not rendered at all, so avoid adding class for it.

Issue #13777

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-10-30 09:21:26 +01:00