]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Use correct title in og:title for pages with no title
[rails.git] / app / controllers / user_controller.rb
index 37f9cd7c204d0c73a8a24ac97d23e60f8267792c..6390ff19ed914c731a8f12b1394b397696203822 100644 (file)
@@ -213,7 +213,7 @@ class UserController < ApplicationController
                        :auth_provider => params[:auth_provider],
                        :auth_uid => params[:auth_uid])
 
-      flash.now[:notice] = t "user.new.auth association"
+      flash.now[:notice] = render_to_string :partial => "auth_association"
     else
       check_signup_allowed
     end
@@ -497,7 +497,7 @@ class UserController < ApplicationController
     when "openid"
       email_verified = uid.match(%r{https://www.google.com/accounts/o8/id?(.*)}) ||
                        uid.match(%r{https://me.yahoo.com/(.*)})
-    when "google"
+    when "google", "facebook"
       email_verified = true
     else
       email_verified = false