diff options
author | Go MAEDA <maeda@farend.jp> | 2020-01-30 05:27:52 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-01-30 05:27:52 +0000 |
commit | 47a71c80113eac70ac94dcc8d8eb3c9860e47959 (patch) | |
tree | 95a5663bf848341cb691890be725553aae3d22c4 /app/models/token.rb | |
parent | 10bb12e09f81dcc56f7a11342b841b9b7cf8d53e (diff) | |
download | redmine-47a71c80113eac70ac94dcc8d8eb3c9860e47959.tar.gz redmine-47a71c80113eac70ac94dcc8d8eb3c9860e47959.zip |
Reverts r19478 (#32897).
git-svn-id: http://svn.redmine.org/redmine/trunk@19479 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/token.rb')
-rw-r--r-- | app/models/token.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/token.rb b/app/models/token.rb index 91806f609..8e93918ec 100644 --- a/app/models/token.rb +++ b/app/models/token.rb @@ -19,7 +19,7 @@ class Token < ActiveRecord::Base belongs_to :user - validates_uniqueness_of :value, :case_sensitive => false + validates_uniqueness_of :value before_create :delete_previous_tokens, :generate_new_token |