Commit f5eb1be2 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Add token value uniqueness validation (#3351).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2741 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 3e523839
......@@ -17,6 +17,7 @@
class Token < ActiveRecord::Base
belongs_to :user
validates_uniqueness_of :value
@@validity_time = 1.day
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment