]> git.openstreetmap.org Git - rails.git/commitdiff
Only show login/signup in slim mode when used from oauth
authorTom Hughes <tom@compton.nu>
Sun, 3 Apr 2011 10:16:57 +0000 (11:16 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 3 Apr 2011 12:46:18 +0000 (13:46 +0100)
app/controllers/user_controller.rb

index ed17c1e41ea04e32f32c7e47fe235bce83637659..25dd18f9223b905493baf91b50b1f5ecfd5568e3 100644 (file)
@@ -503,7 +503,7 @@ private
   def choose_layout
     if [ 'api_details' ].include? action_name
       nil
-    elsif [ 'login', 'new', 'terms'].include? action_name
+    elsif params[:referer] == url_for(:controller => :oauth, :action => :oauthorize, :only_path => true)
       'slim'
     else
       'site'