summaryrefslogtreecommitdiffstats
path: root/app/models/user.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix: `updated_by_id` in Journal points to a deleted user instead of an ↵Go MAEDA2024-10-291-0/+1
| | | | | | | | | anonymous user (#41572). Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove unnecessary rubocop:disable directive for Style/EmptyLiteral (#39887).Go MAEDA2024-09-051-2/+2
| | | | | | | RuboCop’s Style/EmptyLiteral false positive for `Hash.new([])` was resolved in RuboCop 1.66.1. This commit updates the RuboCop version to 1.66.1 and removes the now-unnecessary `rubocop:disable` directives. git-svn-id: https://svn.redmine.org/redmine/trunk@23013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/StringChars (#39887).Go MAEDA2024-09-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23009 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Revert r23002 (#39887).Go MAEDA2024-09-011-2/+2
| | | | | | | | | | | | | | The change caused a test failure: ``` Failure: UserTest#test_accessing_projects_by_role_with_no_projects_should_return_an_empty_array [test/unit/user_test.rb:1048]: Expected: [] Actual: nil ``` git-svn-id: https://svn.redmine.org/redmine/trunk@23006 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Disable RuboCop Lint/InterpolationCheck for USER_FORMATS in ↵Go MAEDA2024-09-011-0/+2
| | | | | | app/models/user.rb (#39887). git-svn-id: https://svn.redmine.org/redmine/trunk@23005 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/EmptyLiteral (#39887).Go MAEDA2024-09-011-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@23002 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Introduce `active?` method to Group via Principal model (#27510).Go MAEDA2024-08-211-4/+0
| | | | | | | Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22976 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use anonymous block forwarding introduced in Ruby 3.1 (#38585).Go MAEDA2024-08-211-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22973 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set default age parameter for User.prune method to 30 days (#41023).Go MAEDA2024-07-191-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22938 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reject passwords that are the same as login, first name, last name, or email ↵Go MAEDA2024-06-211-0/+11
| | | | | | | | | (#37279). Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22888 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Rails/ActiveRecordCallbacksOrder (#39889).Go MAEDA2024-06-171-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22879 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-261-1/+1
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r22438 (#35189).Marius Balteanu2024-01-231-15/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22616 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace request_store with ActiveSupport::CurrentAttributes (#39110).Marius Balteanu2023-11-211-2/+6
| | | | | | Patch by Takashi Kato. git-svn-id: https://svn.redmine.org/redmine/trunk@22473 e93f8b46-1217-0410-a6f0-8f06a7374b81
* New email notification option "For any event on my bookmarked projects" ↵Go MAEDA2023-11-161-2/+15
| | | | | | | | | (#35189). Patch by Mizuki ISHIKAWA. git-svn-id: https://svn.redmine.org/redmine/trunk@22438 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove @rss_*@ deprecated methods (#36806).Marius Balteanu2023-11-061-12/+0
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22416 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Raise the maximum length of the last name to 255 characters (#37679).Go MAEDA2023-08-271-1/+2
| | | | | | | Patch by Anthony Mallet. git-svn-id: https://svn.redmine.org/redmine/trunk@22284 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Lint/UselessRescue (#36919).Go MAEDA2023-01-111-2/+0
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22035 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/BlockGivenWithExplicitBlock (#38146).Go MAEDA2023-01-111-2/+2
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22027 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Include roles of built-in "Non member users" and "Anonymous users" members ↵Marius Balteanu2022-03-271-0/+9
| | | | | | when user is not a member of the project. This fixes #34029. git-svn-id: https://svn.redmine.org/redmine/trunk@21502 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Increase email address length limit from 60 to 254 (#36825).Go MAEDA2022-03-231-1/+1
| | | | | | | Contributed by Brice Beaumesnil. git-svn-id: https://svn.redmine.org/redmine/trunk@21497 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add tasks to prune registered users after a certain number of days (#30998).Go MAEDA2022-03-221-0/+4
| | | | | | | Patch by Yuichi HARADA and Marius BALTEANU. git-svn-id: https://svn.redmine.org/redmine/trunk@21490 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Deprecate and rename rss_* methods to atom_* methods (#15118).Marius Balteanu2022-03-191-7/+19
| | | | | | | Patch by Mischa The Evil and Marius BĂLTEANU git-svn-id: http://svn.redmine.org/redmine/trunk@21467 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "required for administrators" option to Two-factor authentication ↵Marius Balteanu2022-02-011-0/+1
| | | | | | 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
* Improve readability of @must_activate_twofa?@ function (#31920).Marius Balteanu2022-01-291-4/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21389 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update session token only once per minute (#29041).Go MAEDA2022-01-221-1/+8
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@21376 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Drop OpenID support (#35755).Go MAEDA2021-12-141-25/+1
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21312 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Split multiple classes and modules that existed in the same file (#29914, ↵Marius Balteanu2021-10-201-51/+0
| | | | | | | | #32938). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@21252 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use ids instead of pluck(:id) (#32977).Marius Balteanu2021-09-061-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21208 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove references to deleted user from "user"-Format CustomFields when ↵Marius Balteanu2021-09-061-0/+4
| | | | | | | | destroying an user (#32977). Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21207 e93f8b46-1217-0410-a6f0-8f06a7374b81
* User sessions not reset after 2FA activation (#35417).Go MAEDA2021-07-151-1/+1
| | | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@21069 e93f8b46-1217-0410-a6f0-8f06a7374b81
* When 2FA is set to optional, allow to require 2FA only for certain user ↵Marius Balteanu2021-07-041-1/+4
| | | | | | | | groups (#31920). Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@21060 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove deprecated WikiContent::Version (#35031).Go MAEDA2021-05-151-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21002 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace pluck().first with pick() (#32909).Go MAEDA2021-04-031-1/+1
| | | | | | | Patch by Pavel Rosický and Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20907 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changes User.try_to_login to catch and log AuthSourceExceptions, and ↵Go MAEDA2020-12-021-0/+10
| | | | | | | | | introduces User.try_to_login! replicating the original behavior (#34071). Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@20547 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at ActiveRecord scope lambda of app/models/user.rbToshi MARUYAMA2020-11-091-8/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20318 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of app/models/user.rbToshi MARUYAMA2020-09-171-7/+4
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20037 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a setting to disable/enable/require 2fa auth (#1237).Go MAEDA2020-08-291-0/+4
| | | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@19989 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds two factor authentication support (#1237).Go MAEDA2020-08-291-0/+13
| | | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@19988 e93f8b46-1217-0410-a6f0-8f06a7374b81
* use "do end" instead of {} at app/models/user.rbToshi MARUYAMA2020-08-091-7/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19973 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of app/models/user.rbToshi MARUYAMA2020-07-211-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19922 e93f8b46-1217-0410-a6f0-8f06a7374b81
* fix source indent of app/models/user.rbToshi MARUYAMA2020-07-151-36/+36
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19903 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of app/models/user.rbToshi MARUYAMA2020-07-111-5/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19879 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty lines after guard clause to app/models/user.rbToshi MARUYAMA2020-07-091-0/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19871 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails 6: Fix deprecation warning "Class level methods will no longer inherit ↵Go MAEDA2020-02-031-2/+2
| | | | | | | | | scoping" (#32911). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@19490 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable users to receive email notifications about high issues (only) (#32628).Go MAEDA2020-01-211-0/+4
| | | | | | | Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@19449 e93f8b46-1217-0410-a6f0-8f06a7374b81