]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/users_controller.rb
Bump eslint from 8.47.0 to 8.48.0
[rails.git] / app / controllers / users_controller.rb
index abd998030eda898c28d439f82d6156c219c701c9..0f9e1676764d11d5efb165254b798bc228bb0b2a 100644 (file)
@@ -250,7 +250,7 @@ class UsersController < ApplicationController
                      when "openid"
                        uid.match(%r{https://www.google.com/accounts/o8/id?(.*)}) ||
                        uid.match(%r{https://me.yahoo.com/(.*)})
-                     when "google", "facebook"
+                     when "google", "facebook", "microsoft"
                        true
                      else
                        false
@@ -357,7 +357,7 @@ class UsersController < ApplicationController
   # get list of MX servers for a domains
   def domain_mx_servers(domain)
     Resolv::DNS.open do |dns|
-      dns.getresources(domain, Resolv::DNS::Resource::IN::MX).collect(&:exchange).collect(&:to_s)
+      dns.getresources(domain, Resolv::DNS::Resource::IN::MX).collect { |mx| mx.exchange.to_s }
     end
   end
 end