##// END OF EJS Templates
Add token value uniqueness validation (#3351)....
Jean-Philippe Lang -
r2642:f5eb1be26857
parent child
Show More
@@ -17,6 +17,7
17
17
18 class Token < ActiveRecord::Base
18 class Token < ActiveRecord::Base
19 belongs_to :user
19 belongs_to :user
20 validates_uniqueness_of :value
20
21
21 @@validity_time = 1.day
22 @@validity_time = 1.day
22
23
General Comments 0
You need to be logged in to leave comments. Login now