Commit Graph

88 Commits

Author SHA1 Message Date
Marius Balteanu
eb868ad932 Add "required for administrators" option to Two-factor authentication settings that behaves like optional, but will require all users with administration rights to set up two-factor authentication at their next login (#35439).
git-svn-id: http://svn.redmine.org/redmine/trunk@21395 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-02-01 20:17:27 +00:00
Go MAEDA
3686b77eb6 Update copyright year in source files to 2022 (#36379).
git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 05:29:10 +00:00
Go MAEDA
f3f355a8bf Fix that encoding drop-down in the import settings defaults to US-ASCII instead of general_csv_encoding in Thai (#36377).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21336 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 02:38:32 +00:00
Go MAEDA
a99567846c Fix that encoding drop-down in the import settings defaults to US-ASCII instead of general_csv_encoding in Korean (#36377).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21335 e93f8b46-1217-0410-a6f0-8f06a7374b81
2022-01-02 02:37:13 +00:00
Go MAEDA
9955844da1 Drop OpenID support (#35755).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21312 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-12-14 00:09:53 +00:00
Go MAEDA
5865edeba7 Psych 4: Psych::DisallowedClass exception when unserializing a setting value (#36226).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21294 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-11-25 05:48:04 +00:00
Marius Balteanu
1b0bf28803 When 2FA is set to optional, allow to require 2FA only for certain user groups (#31920).
Patch by Jens Krämer.

git-svn-id: http://svn.redmine.org/redmine/trunk@21060 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-07-04 13:06:47 +00:00
Go MAEDA
2a564a1376 DEPRECATION WARNING: Uniqueness validator will no longer enforce case sensitive comparison in Rails 6.1. (#29914, #32897).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@20880 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-04-01 14:32:23 +00:00
Go MAEDA
3e36b5c452 Update copyright year in source files to 2021 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-03-25 06:58:56 +00:00
Go MAEDA
5f30d907a7 Remove unsupported encodings ISO-2022-KR and ISCII91 from Setting::ENCODINGS (#34750).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20747 e93f8b46-1217-0410-a6f0-8f06a7374b81
2021-02-17 12:24:12 +00:00
Toshi MARUYAMA
0468fe6545 remove spaces inside {} of app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20346 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-12 12:31:51 +00:00
Toshi MARUYAMA
238e6ce65d use "do end" instead of {} at app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20283 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-11-07 12:30:31 +00:00
Go MAEDA
fdba424d77 Use match? instead of =~ when MatchData is not used (#34150).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20168 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-23 00:13:38 +00:00
Toshi MARUYAMA
2cf079be5b add space after comma to app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20130 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-05 15:48:22 +00:00
Toshi MARUYAMA
c988d6ca48 shorten long line of app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20123 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-10-05 15:47:26 +00:00
Go MAEDA
be7f5e21fa Adds a setting to disable/enable/require 2fa auth (#1237).
Patch by Felix Schäfer.


git-svn-id: http://svn.redmine.org/redmine/trunk@19989 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-29 06:37:09 +00:00
Go MAEDA
907e0173e4 Update copyright year in source files to 2020 (#33069).
git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-03-03 00:24:10 +00:00
Go MAEDA
47a71c8011 Reverts r19478 (#32897).
git-svn-id: http://svn.redmine.org/redmine/trunk@19479 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-30 05:27:52 +00:00
Go MAEDA
10bb12e09f Fix 'DEPRECATION WARNING: Uniqueness validator will no longer enforce case sensitive comparison in Rails 6.1.' (#32897).
Patch by Marius BALTEANU.


git-svn-id: http://svn.redmine.org/redmine/trunk@19478 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-01-28 09:49:14 +00:00
Toshi MARUYAMA
dd0c72e4bc cleanup: rubocop: fix Layout/IndentFirstHashElement in app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19302 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-25 16:48:24 +00:00
Toshi MARUYAMA
43e0616102 cleanup: rubocop: fix Layout/EmptyLineAfterGuardClause in app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19288 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-25 09:08:02 +00:00
Toshi MARUYAMA
404f2fb54d cleanup: rubocop: fix Layout/IndentFirstArrayElement in app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19248 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-24 12:57:50 +00:00
Toshi MARUYAMA
ab37571a8e cleanup: rubocop: fix Layout/EmptyLinesAroundClassBody in app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19104 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-11-20 16:29:52 +00:00
Toshi MARUYAMA
e57b7fd4c0 code cleanup: rubocop: fix Layout/MultilineArrayBraceLayout in app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18795 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:30:41 +00:00
Toshi MARUYAMA
991230f37a code cleanup: rubocop: fix Layout/AccessModifierIndentation in app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18794 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:30:29 +00:00
Toshi MARUYAMA
cd922bb237 code cleanup: rubocop: fix Layout/AlignArray in app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18792 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-22 11:30:05 +00:00
Toshi MARUYAMA
beb966737a fix Setting#find_or_default is not private
git-svn-id: http://svn.redmine.org/redmine/trunk@18694 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-16 14:36:31 +00:00
Toshi MARUYAMA
b8f33b0694 code cleanup: rubocop: fix Layout/ClosingHeredocIndentation in app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18646 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-13 16:22:54 +00:00
Toshi MARUYAMA
ca411ddca7 code cleanup: rubocop: fix Layout/EmptyLinesAroundBlockBody in app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18559 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-09-30 09:00:06 +00:00
Go MAEDA
35e6a532f5 Force passwords to contain specified character classes (#4221).
Patch by Takenori TAKAKI.


git-svn-id: http://svn.redmine.org/redmine/trunk@18411 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-29 01:35:09 +00:00
Go MAEDA
26774d09e9 Code cleanup: RuboCop: Fix Style/UnneededCondition in app/models/setting.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18397 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-26 07:16:55 +00:00
Go MAEDA
47dd2083f7 Reject setting RFC non-compliant emission email addresses (#31154).
Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18396 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-08-26 04:18:18 +00:00
Go MAEDA
4082069c75 Update copyright year.
git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-05-25 07:36:06 +00:00
Go MAEDA
07b3087fda Enable frozen_string_literal for some files under app and lib directory (#26561).
git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-16 09:37:35 +00:00
Go MAEDA
5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00
Go MAEDA
5329ef3b82 Reverts r17862.
git-svn-id: http://svn.redmine.org/redmine/trunk@17878 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-18 13:03:03 +00:00
Go MAEDA
b0b8978ff8 Fix: Mail handler does not ignore emails sent from emission email address if Setting.mail_from includes display name (#30785).
Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@17862 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-02-12 23:35:05 +00:00
Jean-Philippe Lang
0c78056a69 Send emails asynchronously (#26791).
Custom async_* delivery methods are removed in favor of ActiveJob (Async by default).

git-svn-id: http://svn.redmine.org/redmine/trunk@17588 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-10-10 17:13:09 +00:00
Go MAEDA
6233ebd71e Fix indent (#27025).
Patch by Jan Schulz-Hofen.


git-svn-id: http://svn.redmine.org/redmine/trunk@17226 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-03-03 04:32:16 +00:00
Go MAEDA
76f12c1316 Optional regex for filtering attachments on incoming emails (#27025).
Patch by Jan Schulz-Hofen.


git-svn-id: http://svn.redmine.org/redmine/trunk@17225 e93f8b46-1217-0410-a6f0-8f06a7374b81
2018-03-03 04:29:54 +00:00
Jean-Philippe Lang
d74f0bfd5c Merged rails-5.1 branch (#23630).
git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-23 11:26:04 +00:00
Toshi MARUYAMA
ff257d05e3 Replace tabs with spaces (#26333).
Patched by Mischa The Evil.

git-svn-id: http://svn.redmine.org/redmine/trunk@16753 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-07-04 04:00:23 +00:00
Jean-Philippe Lang
7fd04e1f8d Update copyright.
git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
2017-06-25 08:40:31 +00:00
Jean-Philippe Lang
f30462595e Optional Regex delimiters to truncate incoming emails (#5864).
git-svn-id: http://svn.redmine.org/redmine/trunk@16065 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-12-13 18:46:29 +00:00
Jean-Philippe Lang
596a196f2e Don't error if an invalid setting is given.
git-svn-id: http://svn.redmine.org/redmine/trunk@15730 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-07-21 18:14:13 +00:00
Jean-Philippe Lang
cda9c63d9c Updates copyright for 2016.
git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-03-13 10:30:10 +00:00
Jean-Philippe Lang
b5366eb307 Send a notification when security settings are changed (#21421).
git-svn-id: http://svn.redmine.org/redmine/trunk@15148 e93f8b46-1217-0410-a6f0-8f06a7374b81
2016-02-05 08:50:21 +00:00
Jean-Philippe Lang
12263ae626 Reverts r14115 in trunk.
git-svn-id: http://svn.redmine.org/redmine/trunk@14117 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-15 20:27:12 +00:00
Jean-Philippe Lang
3f46dfdee9 Compatibility with ruby1.8 (#19305).
git-svn-id: http://svn.redmine.org/redmine/trunk@14115 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-15 19:56:54 +00:00
Jean-Philippe Lang
ed2a3a2244 Make sure that settings are unserialized as UTF-8 encoded strings (#19305).
git-svn-id: http://svn.redmine.org/redmine/trunk@14112 e93f8b46-1217-0410-a6f0-8f06a7374b81
2015-03-15 14:38:46 +00:00