X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6bcc50e27402e447ba0986a0d63706eaddd7e0f6..11f457e84238cf4e53b0d5f7ee8bad4d5d50a14e:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index cd38dd940..1dbc9368d 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -154,9 +154,9 @@ class UserController < ApplicationController end return elsif User.authenticate(:username => email_or_display_name, :password => pass, :inactive => true) - @notice = "Sorry, your account is not active yet.
Please click on the link in the account confirmation email to activate your account." + @notice = I18n.t('user.login.account not active') else - @notice = "Sorry, couldn't log in with those details." + @notice = I18n.t('user.login.auth failure') end end end @@ -206,11 +206,11 @@ class UserController < ApplicationController @user.email_valid = true @user.save! token.destroy - flash[:notice] = I18n.t('user.confirm email.success') + flash[:notice] = I18n.t('user.confirm_email.success') session[:user] = @user.id redirect_to :action => 'account', :display_name => @user.display_name else - @notice = I18n.t('user.confirm email.failure') + @notice = I18n.t('user.confirm_email.failure') end end end