fix token re-generation

This commit is contained in:
jomo
2014-05-01 00:46:39 +02:00
parent 046c93a868
commit 14aaf82407

View File

@@ -205,7 +205,7 @@ class User < ActiveRecord::Base
end
def set_email_token
self.email_token = SecureRandom.hex(16)
self.email_token ||= SecureRandom.hex(16)
end
# def ign_is_not_skull