From ef038fa5fe7309888545bab66758cd1f8fbd51bd Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 10 Sep 2010 11:23:01 +0100 Subject: [PATCH] Only display the license notice if we don't already have a notice --- app/controllers/user_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index b9cca0cf6..21561736c 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -220,7 +220,7 @@ class UserController < ApplicationController else flash.now[:error] = t 'user.login.auth failure' end - else + elsif flash[:notice].nil? flash.now[:notice] = t 'user.login.notice' end end -- 2.43.2