diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-08-28 13:31:14 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-09-05 13:18:32 +0300 |
commit | d71d10c983c48b30844090120141058de77095b0 (patch) | |
tree | 2044f26a18960c3333e564e0465ce9eb03bdd991 /app/models/gpg_key.rb | |
parent | 98016ef7f395303682f472414b2f109ff8a598f5 (diff) |
use User#verified_email? for gpg key verification
Diffstat (limited to 'app/models/gpg_key.rb')
-rw-r--r-- | app/models/gpg_key.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/gpg_key.rb b/app/models/gpg_key.rb index 9b3723fa4d7..1c1e2b585f0 100644 --- a/app/models/gpg_key.rb +++ b/app/models/gpg_key.rb @@ -56,7 +56,7 @@ class GpgKey < ActiveRecord::Base def verified_user_infos user_infos.select do |user_info| - user_info[:email] == user.email + user.verified_email?(user_info[:email]) end end @@ -64,7 +64,7 @@ class GpgKey < ActiveRecord::Base user_infos.map do |user_info| [ user_info[:email], - user_info[:email] == user.email + user.verified_email?(user_info[:email]) ] end.to_h end |