From 8b256f8a458da0c61b6149a4fa9b8fc6977af704 Mon Sep 17 00:00:00 2001 From: Nathan L Smith Date: Thu, 7 Aug 2014 21:28:02 -0500 Subject: [PATCH] Ensure correct layout is used on login action. --- app/controllers/users_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 35f6c34a..9c83e202 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -16,7 +16,7 @@ # class UsersController < ApplicationController - + layout 'login', :only => :login respond_to :html before_filter :require_login, :except => [:login, :login_exec, :complete] @@ -117,7 +117,6 @@ def login redirect_to :nodes, :flash => { :warning => "You've already logged in with user #{current_user.name}" } else @user = User.new - render :layout => 'login' end end