X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ad2739347b5fc7c57d8b7131580fda10cc77f108..4dff06a6293971c3e17f8508859a1d80717a23f6:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index 958a03a98..6fa0f330e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -124,6 +124,10 @@ class User < ApplicationRecord before_save :update_tile after_save :spam_check + generates_token_for :new_user, :expires_in => 1.week do + fingerprint + end + generates_token_for :new_email, :expires_in => 1.week do fingerprint end