diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ba2e44d10..e1c9126f0 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -29,11 +29,6 @@ Layout/AlignParameters: - 'test/dummy/config/initializers/omniauth.rb' - 'test/dummy/config/routes.rb' -# Offense count: 1 -# Cop supports --auto-correct. -Layout/CommentIndentation: - Exclude: - - 'app/controllers/devise_token_auth/omniauth_callbacks_controller.rb' # Offense count: 2 # Cop supports --auto-correct. diff --git a/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb b/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb index 95f3ef2e5..30b2233e8 100644 --- a/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb +++ b/app/controllers/devise_token_auth/omniauth_callbacks_controller.rb @@ -149,10 +149,10 @@ def devise_mapping def set_random_password # set crazy password for new oauth users. this is only used to prevent - # access via email sign-in. - p = SecureRandom.urlsafe_base64(nil, false) - @resource.password = p - @resource.password_confirmation = p + # access via email sign-in. + p = SecureRandom.urlsafe_base64(nil, false) + @resource.password = p + @resource.password_confirmation = p end def create_auth_params