]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
user.login.account suspended so translators don't have to type out anchors
[rails.git] / app / controllers / user_controller.rb
index e07b65af76502278deb69b98c62283bc76f20e39..d86c9a4bafef12ae71260ad06ba43002b8084ac5 100644 (file)
@@ -197,7 +197,8 @@ class UserController < ApplicationController
       elsif User.authenticate(:username => email_or_display_name, :password => pass, :pending => true)
         flash.now[:error] = t 'user.login.account not active'
       elsif User.authenticate(:username => email_or_display_name, :password => pass, :suspended => true)
-        flash.now[:error] = t 'user.login.account suspended'
+        webmaster = link_to t('user.login.webmaster'), "mailto:webmaster@openstreetmap.org"
+        flash.now[:error] = t 'user.login.account suspended', :webmaster => webmaster
       else
         flash.now[:error] = t 'user.login.auth failure'
       end