]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Only use SystemTimer on MRI 1.8 as it is superfluous elsewhere
[rails.git] / app / controllers / user_controller.rb
index c9983cc855807f1fa343ecc1fedc4a5909bb8468..89f35a8996e6cea3c9b20808259ae16b76e8d0b2 100644 (file)
@@ -282,6 +282,8 @@ class UserController < ApplicationController
       else
         password_authentication(params[:username], params[:password])
       end
+    elsif params[:notice]
+      flash.now[:notice] = t "user.login.notice_#{params[:notice]}"
     elsif flash[:notice].nil?
       flash.now[:notice] =  t 'user.login.notice'
     end