Commit graph

2644 commits

Author SHA1 Message Date
Jan Böhmer
62052fc947 Fixed wrong translation for old password field in user settings. 2020-01-01 16:23:30 +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
be34a0f734 Require PHP 7.2 as minimum version
This allows us to upgrade many libs (including Symfony itself) and should not has a large impact as the most linux distros ships either PHP 7.0 or PHP 7.2.
2020-01-01 15:57:34 +01:00
Jan Böhmer
1016f0d4ee Merge branch '2fa' into master 2020-01-01 15:49:42 +01:00
Jan Böhmer
9b2e7a84a0 Added an logout link to U2F 2FA page. 2020-01-01 15:45:15 +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
3db0baa5e5 Fixed 2FA disable button in user admin. 2019-12-31 17:36:42 +01:00
Jan Böhmer
714e54853a Fixed problem that form was not submitted if it was submitted via an button without message. 2019-12-29 20:18:48 +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
16bc257b17 Added confirm dialog before disabling google authenticator or regenerate backup codes. 2019-12-29 17:12:55 +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
23587fe3e6 Updated Doctrine Test Bundle. 2019-12-27 15:38:56 +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
452fc3e78a Merge branch 'master' into 2fa 2019-12-26 15:11:17 +01:00
Jan Böhmer
8f1f2f0fa2 Dont do a xliff lint on travis
Symfony does not know an attribute php-translation bundle outputs, so the check fails.
2019-12-26 15:11:07 +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
e7b920c4fe Use php-translation symfony bundle.
This gives us some advanced translation extractors (from form labels, flashes, etc.) and provide some more debug tools.
2019-12-26 13:16:27 +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
10ca895309 Implemented the two factor auth login form. 2019-12-23 18:45:32 +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
24672a30b9 Merge branch 'master' into 2fa 2019-12-23 13:51:32 +01:00
Jan Böhmer
2fded2b880 Updated to symfony 4.4.2 2019-12-23 13:51:16 +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
235baf32d5 Removed dependencies on Guzzle. We use Symfony HTTP-Client now. 2019-12-11 20:47:00 +01:00
Jan Böhmer
835087cd3f Travis: Test against php 7.4 release version. 2019-12-11 20:33:38 +01:00
Jan Böhmer
a81cd4d84b Updated yarn dependencies. 2019-12-11 20:25:20 +01:00
Jan Böhmer
93e5ae18d6 Update composer dependencies. 2019-12-11 20:12:42 +01:00
Jan Böhmer
8af9c6e7cd Fixed dockerfile 2019-12-01 15:44:32 +01:00
Jan Böhmer
481dcb8942 Allow failure of php7.4snapshot on Travis. 2019-12-01 15:42:54 +01:00
Jan Böhmer
87cfb50285 Upgraded symfony to 4.4.1 2019-12-01 15:18:44 +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