summaryrefslogtreecommitdiffstats
path: root/app/models/token.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Use ApplicationRecord instead of ActiveRecord::Base (#38975).Marius Balteanu2024-01-231-1/+1
| | | | | | Patch by Minoru Maeda (@maeda-m). git-svn-id: https://svn.redmine.org/redmine/trunk@22619 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Style/HashEachMethods (#39887).Go MAEDA2023-12-201-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22532 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
* 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
* DEPRECATION WARNING: Uniqueness validator will no longer enforce case ↵Go MAEDA2021-04-011-1/+1
| | | | | | | | | 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
* Use secure_compare to validate keys (#34950).Go MAEDA2021-03-261-5/+7
| | | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@20854 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
* remove spaces inside {} of app/models/token.rbToshi MARUYAMA2020-11-131-3/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20360 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Backup codes for 2fa auth (#1237).Go MAEDA2020-08-291-0/+1
| | | | | | | Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@19990 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
* Reverts r19478 (#32897).Go MAEDA2020-01-301-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19479 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix 'DEPRECATION WARNING: Uniqueness validator will no longer enforce case ↵Go MAEDA2020-01-281-1/+1
| | | | | | | | | 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
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use Regexp#match? to reduce allocations of MatchData object (#28940).Go MAEDA2019-03-271-1/+1
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Enable frozen_string_literal for some files under app and lib directory ↵Go MAEDA2019-03-161-1/+1
| | | | | | (#26561). git-svn-id: http://svn.redmine.org/redmine/trunk@17977 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use find_by instead of where.first to remove unnecessary sorting (#26747).Go MAEDA2018-10-061-1/+1
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@17586 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-5.1 branch (#23630).Jean-Philippe Lang2017-07-231-1/+0
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16859 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't compare timestamps with 0, triggers SQL errors with PostgreSQL (#10840).Jean-Philippe Lang2017-01-121-4/+3
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16175 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow "stay logged in" from multiple browsers (#10840).Jean-Philippe Lang2017-01-121-4/+56
| | | | | | Patch by Gregor Schmidt. git-svn-id: http://svn.redmine.org/redmine/trunk@16174 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Keep track of valid user sessions (#21058).Jean-Philippe Lang2015-10-241-2/+10
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14735 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2014-11-301-4/+5
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13682 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged rails-4.1 branch (#14534).Jean-Philippe Lang2014-10-221-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13482 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds token finder methods.Jean-Philippe Lang2013-02-141-4/+21
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11374 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Test broken by r11296.Jean-Philippe Lang2013-02-021-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11297 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Refactors methods for searching a user by token.Jean-Philippe Lang2013-02-021-1/+16
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11296 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that Token.destroy_expired destroys API tokens.Jean-Philippe Lang2012-04-151-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9420 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds Redmine::Utils.random_hex for generating a random hex string.Jean-Philippe Lang2012-03-041-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9071 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: model: replace deprecated 'before_create' method at Token modelToshi MARUYAMA2011-09-211-2/+2
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7428 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from app/models/token.rb.Toshi MARUYAMA2011-08-211-10/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6508 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Delete previous tokens when creating a new one.Jean-Philippe Lang2009-06-021-2/+11
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2778 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add token value uniqueness validation (#3351).Jean-Philippe Lang2009-05-131-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2741 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use ActiveSupport::SecureRandom to generate tokens (#3351).Jean-Philippe Lang2009-05-131-4/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2740 e93f8b46-1217-0410-a6f0-8f06a7374b81
* added rss/atom feeds at project levels for:Jean-Philippe Lang2007-03-171-1/+1
| | | | | | | | | | * news * new issues reported * details of issue changes issue cutom queries can be used as feeds git-svn-id: http://redmine.rubyforge.org/svn/trunk@339 e93f8b46-1217-0410-a6f0-8f06a7374b81
* trunk moved from /trunk/redmine to /trunkJean-Philippe Lang2006-12-051-0/+44
git-svn-id: http://redmine.rubyforge.org/svn/trunk@67 e93f8b46-1217-0410-a6f0-8f06a7374b81