Commit graph

992 commits

Author SHA1 Message Date
Jan Böhmer
9a7223a301 Fixed code style. 2020-01-04 20:24:09 +01:00
Jan Böhmer
1aed1d1d26 Fixed some inspection issues. 2020-01-04 20:14:42 +01:00
Jan Böhmer
811dca691b Use native json_encode to convert treeView objects to JSON.
This should improve the performance.
2020-01-02 23:21:37 +01:00
Jan Böhmer
fbcfc1f2a8 Fixed some tests. 2020-01-02 23:03:25 +01:00
Jan Böhmer
d9b15ddbb9 Use new cached treeview nodes for twig inline generator (admin pages) 2020-01-02 22:55:28 +01:00
Jan Böhmer
ad69c32832 Cache the trees structures for treeViews used in the sidebar. 2020-01-02 18:45:41 +01:00
Jan Böhmer
7e0e83ef15 Removed redirect to userSettings in RedirectController
We do this in an EventSubscriber now, so this is not needed anymore.
2020-01-01 18:23:30 +01:00
Jan Böhmer
e16ae9390f Fixed tests. 2020-01-01 17:13:04 +01:00
Jan Böhmer
55d26879ff Really restrict keyhandle length. 2020-01-01 16:13:54 +01:00
Jan Böhmer
84cb5acf6a Restrict keyhandle length to 64 chars to ensure compatibility with some older MySQL versions. 2020-01-01 16:12:15 +01:00
Jan Böhmer
1016f0d4ee Merge branch '2fa' into master 2020-01-01 15:49:42 +01:00
Jan Böhmer
96fa3be7cc Added translations for 2FA. 2020-01-01 15:42:18 +01:00
Jan Böhmer
0c7a8bd85e Disable 2FA settings when demo mode is active. 2019-12-31 18:12:15 +01:00
Jan Böhmer
5ee9d5ade0 Updated copyright headers. 2019-12-31 17:58:01 +01:00
Jan Böhmer
cdd5027ee8 Redirect user if it need to add an 2FA method or need to change password 2019-12-31 17:54:51 +01:00
Jan Böhmer
b4958cbaf8 Added infos about 2FA and possibilities to disable them all on user admin page. 2019-12-29 20:04:52 +01:00
Jan Böhmer
b5e80ec1b7 Prefer U2F as 2FA method if it is available. 2019-12-29 17:36:41 +01:00
Jan Böhmer
39aaab07c5 Moved user settings and 2FA related controller into its own class UserSettingsController. 2019-12-29 17:17:12 +01:00
Jan Böhmer
12dd269b3a Added possibilty to invalidate trusted devices. 2019-12-29 16:43:43 +01:00
Jan Böhmer
3e56352688 Added the possibility to delete a U2F key. 2019-12-29 16:20:09 +01:00
Jan Böhmer
069293a843 Added 2FA with U2F keys. 2019-12-29 13:35:30 +01:00
Jan Böhmer
47fa8b04e5 Added an button generate a new set of backup codes. 2019-12-27 18:42:08 +01:00
Jan Böhmer
604ebe420d Added possibility to show backup codes in user settings. 2019-12-27 18:21:12 +01:00
Jan Böhmer
fba5f9794f Added an service for generating Backup codes and added some tests. 2019-12-27 15:20:06 +01:00
Jan Böhmer
6d7cec7a6e Removed translator call to non existing (and not needed) translator
This should fix the errors on travis.
2019-12-27 14:36:22 +01:00
Jan Böhmer
ac0928426b Merge branch 'master' into 2fa 2019-12-26 15:07:32 +01:00
Jan Böhmer
042f395edd Dont generate translation key for form input without visible label 2019-12-26 14:56:05 +01:00
Jan Böhmer
89acfff857 Dont call translator inside the form classes.
Translation is already done in the templates, so translator calls in form classes, are bad for performance and readability.
2019-12-26 14:53:13 +01:00
Jan Böhmer
44fe58c587 Immediately show the new status after the google 2fa was enabled/disabled sucessfully. 2019-12-26 12:53:54 +01:00
Jan Böhmer
8add8c919d Allow to disable the google authenticator 2fa. 2019-12-26 12:46:44 +01:00
Jan Böhmer
8c5cf6f9e0 Show data for manual setup of the google authenticator. 2019-12-24 16:07:22 +01:00
Jan Böhmer
2764401451 Dont use multiple statements in on sql command to ensure compatibility.
It seems that older MariaDB versions are more strict with multiple commands in one SQL statement. Should fix issue #3
2019-12-24 15:41:59 +01:00
Jan Böhmer
25105ba7d4 Set default value of enforce_2fa to fix travis. 2019-12-24 15:20:26 +01:00
Jan Böhmer
eb3c34b75f Added autocomplete attributes on password change form in user settings. 2019-12-23 19:00:27 +01:00
Jan Böhmer
35b5640627 Added an basic form to add Google Authenticator. 2019-12-23 17:20:28 +01:00
Jan Böhmer
2fa0963374 Prepared DB and models for Two Factor authentication 2019-12-14 16:35:19 +01:00
Jan Böhmer
9cdf31492a Added german translations for password reset dialogs and email 2019-12-01 13:50:43 +01:00
Jan Böhmer
12b3107188 Added an setting to disable password reset mechanism.
By default the pw reset is disabled, when no email server is configured.
2019-12-01 12:48:59 +01:00
Jan Böhmer
05870caf85 Upgrade password when a better method is available. 2019-11-30 15:28:09 +01:00
Jan Böhmer
6a0d027675 Added an mechanism to reset passwords via mail. 2019-11-24 22:49:22 +01:00
Jan Böhmer
33d6a25060 Fixed an deprecation message. 2019-11-23 17:00:16 +01:00
Jan Böhmer
b48b9b78b4 Fixed exception in ElementPermissionListener. 2019-11-16 21:40:23 +01:00
Jan Böhmer
ffdeacc2ca Revert "Cache ColumnSecurity annotation on ElementPermission Listener to improve performance."
This reverts commit 0d215e7e2f.
2019-11-16 21:39:28 +01:00
Jan Böhmer
5b3533fd3e Added missing translation key in attachment table. 2019-11-16 21:37:59 +01:00
Jan Böhmer
0d215e7e2f Cache ColumnSecurity annotation on ElementPermission Listener to improve performance. 2019-11-16 21:34:21 +01:00
Jan Böhmer
977fa1df7a Cache edit/read permission on ElementPermissionListener
The many calls to voters degraded performance a lot, when querying many entities during things like part tables.
2019-11-16 21:03:59 +01:00
Jan Böhmer
3bc5005826 Use generic file icon for datasheet in parts table if no
This fixes an exception.
2019-11-16 19:31:39 +01:00
Jan Böhmer
988c53bead Fetch the manyTo* entity collections of parts with other part columns
This reduces the query count and should improve performance especially for big tables.
2019-11-16 19:23:45 +01:00
Jan Böhmer
2e3c1d6c0a Fetch preview attachment directly in table query.
This reduces the query count and therfore improves performance.
2019-11-15 19:13:53 +01:00
Jan Böhmer
b0fd346369 Use the right permission for minamount part field. 2019-11-15 19:02:11 +01:00