1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2026-01-17 13:39:46 +00:00

only allow users with an invite to create accounts

هذا الالتزام موجود في:
Adam Cooke
2017-05-12 14:45:42 +01:00
الأصل 43a5bc4e94
التزام e9b03987fe
5 ملفات معدلة مع 27 إضافات و16 حذوفات

عرض الملف

@@ -25,6 +25,8 @@ class UserInvite < ApplicationRecord
default_value :expires_at, -> { 7.days.from_now }
scope :active, -> { where("expires_at > ?", Time.now) }
def md5_for_gravatar
@md5_for_gravatar ||= Digest::MD5.hexdigest(email_address.to_s.downcase)
end