diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-07-15 16:36:31 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-07-15 16:36:31 +0000 |
commit | ad97b5afece320b96f0d1ff4acba9b13b5af9883 (patch) | |
tree | fbba79624b545975e955cf36cabf6fa49778e1a1 /app/controllers/account_controller.rb | |
parent | 2eb75e6705b00131af56a7ba0057bd9f40273ab0 (diff) | |
download | redmine-ad97b5afece320b96f0d1ff4acba9b13b5af9883.tar.gz redmine-ad97b5afece320b96f0d1ff4acba9b13b5af9883.zip |
remove spaces inside {} of AccountController
git-svn-id: http://svn.redmine.org/redmine/trunk@19902 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/account_controller.rb')
-rw-r--r-- | app/controllers/account_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index ba6fee9b2..dd6002de0 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -220,7 +220,7 @@ class AccountController < ApplicationController if user.nil? invalid_credentials elsif user.new_record? - onthefly_creation_failed(user, {:login => user.login, :auth_source_id => user.auth_source_id }) + onthefly_creation_failed(user, {:login => user.login, :auth_source_id => user.auth_source_id}) else # Valid user if user.active? @@ -283,7 +283,7 @@ class AccountController < ApplicationController if params[:autologin] && Setting.autologin? set_autologin_cookie(user) end - call_hook(:controller_account_success_authentication_after, {:user => user }) + call_hook(:controller_account_success_authentication_after, {:user => user}) redirect_back_or_default my_page_path end @@ -304,7 +304,7 @@ class AccountController < ApplicationController end # Onthefly creation failed, display the registration form to fill/fix attributes - def onthefly_creation_failed(user, auth_source_options = { }) + def onthefly_creation_failed(user, auth_source_options = {}) @user = user session[:auth_source_registration] = auth_source_options unless auth_source_options.empty? render :action => 'register' |