diff --git a/.ruby-version b/.ruby-version index a603bb50..818bd47a 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.7.5 +3.0.6 diff --git a/Gemfile b/Gemfile index 6ee9db34..8402e29d 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" -DECIDIM_VERSION = "0.26" +DECIDIM_VERSION = "0.27" DECIDIM_BRANCH = "release/#{DECIDIM_VERSION}-stable" ruby RUBY_VERSION @@ -15,9 +15,9 @@ gem "decidim", "~> #{DECIDIM_VERSION}.0" # External Decidim gems gem "decidim-cache_cleaner" -gem "decidim-decidim_awesome" +gem "decidim-decidim_awesome", "~> 0.9.1" gem "decidim-spam_detection" -gem "decidim-term_customizer", git: "https://github.com/armandfardeau/decidim-module-term_customizer.git", branch: "fix/precompile-on-docker-0.26" +gem "decidim-term_customizer", git: "https://github.com/opensourcepolitics/decidim-module-term_customizer.git", branch: "fix/multi-threading-compliant" # Omniauth gems gem "omniauth-saml" @@ -35,8 +35,9 @@ gem "puma", ">= 5.5.1" gem "letter_opener_web", "~> 1.3" gem "rack-attack", "~> 6.6" -gem "ruby-progressbar", "~> 1.11" -gem "sprockets", "~> 3.7" +gem "sidekiq", "~> 6.0" +gem "sidekiq_alive", "~> 2.2" +gem "sidekiq-scheduler", "~> 5.0" gem "sys-filesystem" gem "uglifier", "~> 4.1" @@ -64,7 +65,4 @@ group :production do gem "sentry-rails" gem "sentry-ruby" gem "sentry-sidekiq" - gem "sidekiq", "~> 6.0" - gem "sidekiq_alive", "~> 2.2" - gem "sidekiq-scheduler", "~> 5.0" end diff --git a/Gemfile.lock b/Gemfile.lock index 87bc1548..40e59479 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,11 +1,11 @@ GIT - remote: https://github.com/armandfardeau/decidim-module-term_customizer.git - revision: 63170f69b51bb7e7f60f20856e944ae1357f4dc7 - branch: fix/precompile-on-docker-0.26 + remote: https://github.com/opensourcepolitics/decidim-module-term_customizer.git + revision: 8a6b73e58fbdd7f38daf983a310d37c510ec9baf + branch: fix/multi-threading-compliant specs: - decidim-term_customizer (0.26.0) - decidim-admin (~> 0.26.0) - decidim-core (~> 0.26.0) + decidim-term_customizer (0.27.0) + decidim-admin (~> 0.27.0) + decidim-core (~> 0.27.0) GIT remote: https://github.com/sgruhier/foundation_rails_helper.git @@ -20,38 +20,40 @@ GIT GEM remote: https://rubygems.org/ specs: - actioncable (6.0.6) - actionpack (= 6.0.6) + actioncable (6.1.7.7) + actionpack (= 6.1.7.7) + activesupport (= 6.1.7.7) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (6.0.6) - actionpack (= 6.0.6) - activejob (= 6.0.6) - activerecord (= 6.0.6) - activestorage (= 6.0.6) - activesupport (= 6.0.6) + actionmailbox (6.1.7.7) + actionpack (= 6.1.7.7) + activejob (= 6.1.7.7) + activerecord (= 6.1.7.7) + activestorage (= 6.1.7.7) + activesupport (= 6.1.7.7) mail (>= 2.7.1) - actionmailer (6.0.6) - actionpack (= 6.0.6) - actionview (= 6.0.6) - activejob (= 6.0.6) + actionmailer (6.1.7.7) + actionpack (= 6.1.7.7) + actionview (= 6.1.7.7) + activejob (= 6.1.7.7) + activesupport (= 6.1.7.7) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 2.0) - actionpack (6.0.6) - actionview (= 6.0.6) - activesupport (= 6.0.6) - rack (~> 2.0, >= 2.0.8) + actionpack (6.1.7.7) + actionview (= 6.1.7.7) + activesupport (= 6.1.7.7) + rack (~> 2.0, >= 2.0.9) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (6.0.6) - actionpack (= 6.0.6) - activerecord (= 6.0.6) - activestorage (= 6.0.6) - activesupport (= 6.0.6) + actiontext (6.1.7.7) + actionpack (= 6.1.7.7) + activerecord (= 6.1.7.7) + activestorage (= 6.1.7.7) + activesupport (= 6.1.7.7) nokogiri (>= 1.8.5) - actionview (6.0.6) - activesupport (= 6.0.6) + actionview (6.1.7.7) + activesupport (= 6.1.7.7) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) @@ -59,50 +61,52 @@ GEM active_link_to (1.0.5) actionpack addressable - activejob (6.0.6) - activesupport (= 6.0.6) + activejob (6.1.7.7) + activesupport (= 6.1.7.7) globalid (>= 0.3.6) - activejob-uniqueness (0.2.4) - activejob (>= 4.2, < 7.1) - redlock (>= 1.2, < 2) - activemodel (6.0.6) - activesupport (= 6.0.6) - activerecord (6.0.6) - activemodel (= 6.0.6) - activesupport (= 6.0.6) - activestorage (6.0.6) - actionpack (= 6.0.6) - activejob (= 6.0.6) - activerecord (= 6.0.6) + activejob-uniqueness (0.3.1) + activejob (>= 4.2, < 7.2) + redlock (>= 2.0, < 3) + activemodel (6.1.7.7) + activesupport (= 6.1.7.7) + activerecord (6.1.7.7) + activemodel (= 6.1.7.7) + activesupport (= 6.1.7.7) + activestorage (6.1.7.7) + actionpack (= 6.1.7.7) + activejob (= 6.1.7.7) + activerecord (= 6.1.7.7) + activesupport (= 6.1.7.7) marcel (~> 1.0) - activesupport (6.0.6) + mini_mime (>= 1.1.0) + activesupport (6.1.7.7) concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - zeitwerk (~> 2.2, >= 2.2.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) acts_as_list (0.9.19) activerecord (>= 3.0) - addressable (2.8.1) + addressable (2.8.6) public_suffix (>= 2.0.2, < 6.0) ast (2.4.2) - aws-eventstream (1.2.0) - aws-partitions (1.791.0) - aws-sdk-core (3.178.0) - aws-eventstream (~> 1, >= 1.0.2) + aws-eventstream (1.3.0) + aws-partitions (1.894.0) + aws-sdk-core (3.191.3) + aws-eventstream (~> 1, >= 1.3.0) aws-partitions (~> 1, >= 1.651.0) - aws-sigv4 (~> 1.5) + aws-sigv4 (~> 1.8) jmespath (~> 1, >= 1.6.1) - aws-sdk-kms (1.71.0) - aws-sdk-core (~> 3, >= 3.177.0) + aws-sdk-kms (1.77.0) + aws-sdk-core (~> 3, >= 3.191.0) aws-sigv4 (~> 1.1) - aws-sdk-s3 (1.131.0) - aws-sdk-core (~> 3, >= 3.177.0) + aws-sdk-s3 (1.143.0) + aws-sdk-core (~> 3, >= 3.191.0) aws-sdk-kms (~> 1) - aws-sigv4 (~> 1.6) - aws-sigv4 (1.6.0) + aws-sigv4 (~> 1.8) + aws-sigv4 (1.8.0) aws-eventstream (~> 1, >= 1.0.2) - axe-core-api (4.4.1) + axe-core-api (4.8.2) dumb_delegator virtus axe-core-rspec (4.1.0) @@ -113,8 +117,9 @@ GEM descendants_tracker (~> 0.0.4) ice_nine (~> 0.11.0) thread_safe (~> 0.3, >= 0.3.1) + base64 (0.2.0) batch-loader (1.5.0) - bcrypt (3.1.18) + bcrypt (3.1.20) better_html (1.0.16) actionview (>= 4.0) activesupport (>= 4.0) @@ -123,23 +128,24 @@ GEM html_tokenizer (~> 0.0.6) parser (>= 2.4) smart_properties + bigdecimal (3.1.6) bindex (0.8.1) - bootsnap (1.13.0) + bootsnap (1.18.3) msgpack (~> 1.2) - brakeman (5.3.1) + brakeman (5.4.1) browser (2.7.1) builder (3.2.4) byebug (11.1.3) - capybara (3.37.1) + capybara (3.40.0) addressable matrix mini_mime (>= 0.1.3) - nokogiri (~> 1.8) + nokogiri (~> 1.11) rack (>= 1.6.0) rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) - carrierwave (2.2.2) + carrierwave (2.2.6) activemodel (>= 5.0.0) activesupport (>= 5.0.0) addressable (~> 2.6) @@ -159,9 +165,9 @@ GEM actionpack (>= 5.0) cells (>= 4.1.6, < 5.0.0) charlock_holmes (0.7.7) - chef-utils (17.10.0) + chef-utils (18.4.2) concurrent-ruby - childprocess (3.0.0) + childprocess (4.1.0) climate_control (1.2.0) coercible (1.0.0) descendants_tracker (~> 0.0.1) @@ -172,69 +178,72 @@ GEM coffee-script-source execjs coffee-script-source (1.12.2) - concurrent-ruby (1.1.10) - connection_pool (2.3.0) - crack (0.4.5) + commonmarker (0.23.10) + concurrent-ruby (1.2.3) + connection_pool (2.4.1) + crack (1.0.0) + bigdecimal rexml crass (1.0.6) - css_parser (1.12.0) + css_parser (1.17.1) addressable - dalli (3.2.2) - date_validator (0.9.0) - activemodel - activesupport + dalli (3.2.8) + date (3.3.4) + date_validator (0.12.0) + activemodel (>= 3) + activesupport (>= 3) db-query-matchers (0.10.0) activesupport (>= 4.0, < 7) rspec (~> 3.0) - decidim (0.26.7) - decidim-accountability (= 0.26.7) - decidim-admin (= 0.26.7) - decidim-api (= 0.26.7) - decidim-assemblies (= 0.26.7) - decidim-blogs (= 0.26.7) - decidim-budgets (= 0.26.7) - decidim-comments (= 0.26.7) - decidim-core (= 0.26.7) - decidim-debates (= 0.26.7) - decidim-forms (= 0.26.7) - decidim-generators (= 0.26.7) - decidim-meetings (= 0.26.7) - decidim-pages (= 0.26.7) - decidim-participatory_processes (= 0.26.7) - decidim-proposals (= 0.26.7) - decidim-sortitions (= 0.26.7) - decidim-surveys (= 0.26.7) - decidim-system (= 0.26.7) - decidim-templates (= 0.26.7) - decidim-verifications (= 0.26.7) - decidim-accountability (0.26.7) - decidim-comments (= 0.26.7) - decidim-core (= 0.26.7) - decidim-admin (0.26.7) + decidim (0.27.5) + decidim-accountability (= 0.27.5) + decidim-admin (= 0.27.5) + decidim-api (= 0.27.5) + decidim-assemblies (= 0.27.5) + decidim-blogs (= 0.27.5) + decidim-budgets (= 0.27.5) + decidim-comments (= 0.27.5) + decidim-core (= 0.27.5) + decidim-debates (= 0.27.5) + decidim-forms (= 0.27.5) + decidim-generators (= 0.27.5) + decidim-meetings (= 0.27.5) + decidim-pages (= 0.27.5) + decidim-participatory_processes (= 0.27.5) + decidim-proposals (= 0.27.5) + decidim-sortitions (= 0.27.5) + decidim-surveys (= 0.27.5) + decidim-system (= 0.27.5) + decidim-templates (= 0.27.5) + decidim-verifications (= 0.27.5) + decidim-accountability (0.27.5) + decidim-comments (= 0.27.5) + decidim-core (= 0.27.5) + decidim-admin (0.27.5) active_link_to (~> 1.0) - decidim-core (= 0.26.7) + decidim-core (= 0.27.5) devise (~> 4.7) devise-i18n (~> 1.2) - devise_invitable (~> 2.0) - decidim-api (0.26.7) + devise_invitable (~> 2.0, >= 2.0.9) + decidim-api (0.27.5) graphql (~> 1.12, < 1.13) + graphql-docs (~> 2.1.0) rack-cors (~> 1.0) - redcarpet (~> 3.5, >= 3.5.1) - decidim-assemblies (0.26.7) - decidim-core (= 0.26.7) - decidim-blogs (0.26.7) - decidim-admin (= 0.26.7) - decidim-comments (= 0.26.7) - decidim-core (= 0.26.7) - decidim-budgets (0.26.7) - decidim-comments (= 0.26.7) - decidim-core (= 0.26.7) + decidim-assemblies (0.27.5) + decidim-core (= 0.27.5) + decidim-blogs (0.27.5) + decidim-admin (= 0.27.5) + decidim-comments (= 0.27.5) + decidim-core (= 0.27.5) + decidim-budgets (0.27.5) + decidim-comments (= 0.27.5) + decidim-core (= 0.27.5) decidim-cache_cleaner (1.0.4) decidim-core (~> 0.26) - decidim-comments (0.26.7) - decidim-core (= 0.26.7) + decidim-comments (0.27.5) + decidim-core (= 0.27.5) redcarpet (~> 3.5, >= 3.5.1) - decidim-core (0.26.7) + decidim-core (0.27.5) active_link_to (~> 1.0) acts_as_list (~> 0.9) batch-loader (~> 1.2) @@ -243,21 +252,21 @@ GEM cells-erb (~> 0.1.0) cells-rails (~> 0.1.3) charlock_holmes (~> 0.7) - date_validator (~> 0.9.0) - decidim-api (= 0.26.7) + date_validator (~> 0.12.0) + decidim-api (= 0.27.5) devise (~> 4.7) devise-i18n (~> 1.2) diffy (~> 3.3) doorkeeper (~> 5.1) doorkeeper-i18n (~> 4.0) - file_validators (~> 2.1) + file_validators (~> 3.0) fog-local (~> 0.6) - foundation_rails_helper - geocoder (~> 1.7.5) + foundation_rails_helper (~> 4.0) + geocoder (~> 1.8) hashdiff (>= 0.4.0, < 2.0.0) invisible_captcha (~> 0.12) kaminari (~> 1.2, >= 1.2.1) - loofah (~> 2.3.1) + loofah (~> 2.19.0) mime-types (>= 1.16, < 4.0) mini_magick (~> 4.9) mustache (~> 1.1.0) @@ -272,119 +281,118 @@ GEM premailer-rails (~> 1.10) rack (~> 2.2, >= 2.2.3) rack-attack (~> 6.0) - rails (~> 6.0.4) + rails (~> 6.1.0) rails-i18n (~> 6.0) ransack (~> 2.4.1) - rectify (~> 0.13.0) redis (~> 4.1) request_store (~> 1.5.0) rubyXL (~> 3.4) rubyzip (~> 2.0) - searchlight (~> 4.1) seven_zip_ruby (~> 1.3) social-share-button (~> 1.2, >= 1.2.1) valid_email2 (~> 2.1) webpacker (= 6.0.0.rc.5) + webpush (~> 1.1) wisper (~> 2.0) - decidim-debates (0.26.7) - decidim-comments (= 0.26.7) - decidim-core (= 0.26.7) - decidim-decidim_awesome (0.8.3) - decidim-admin (>= 0.25.0, < 0.27) - decidim-core (>= 0.25.0, < 0.27) + decidim-debates (0.27.5) + decidim-comments (= 0.27.5) + decidim-core (= 0.27.5) + decidim-decidim_awesome (0.9.3) + decidim-admin (>= 0.26.0, < 0.28) + decidim-core (>= 0.26.0, < 0.28) sassc (~> 2.3) - decidim-dev (0.26.7) + decidim-dev (0.27.5) axe-core-rspec (~> 4.1.0) byebug (~> 11.0) capybara (~> 3.24) db-query-matchers (~> 0.10.0) - decidim (= 0.26.7) + decidim (= 0.27.5) erb_lint (~> 0.0.35) factory_bot_rails (~> 4.8) i18n-tasks (~> 0.9.18) mdl (~> 0.5) - nokogiri (~> 1.12) + nokogiri (~> 1.13) + parallel_tests (~> 3.7) puma (~> 5.0) rails-controller-testing (~> 1.0) - rspec-cells (~> 0.3.4) + rspec-cells (~> 0.3.7) rspec-html-matchers (~> 0.9.1) rspec-rails (~> 4.0) rspec-retry (~> 0.6.2) rspec_junit_formatter (~> 0.3.0) - rubocop (~> 0.92.0) - rubocop-rails (~> 2.8) - rubocop-rspec (= 1.43.2) - selenium-webdriver (~> 3.142) - simplecov (~> 0.19.0) - simplecov-cobertura (~> 1.3.1) - system_test_html_screenshots (~> 0.2) + rubocop (~> 1.28.0) + rubocop-rails (~> 2.14) + rubocop-rspec (~> 2.10) + selenium-webdriver (~> 4.1.0) + simplecov (~> 0.21.0) + simplecov-cobertura (~> 2.1.0) w3c_rspec_validators (~> 0.3.0) webmock (~> 3.6) wisper-rspec (~> 1.0) - decidim-forms (0.26.7) - decidim-core (= 0.26.7) + decidim-forms (0.27.5) + decidim-core (= 0.27.5) wicked_pdf (~> 2.1) wkhtmltopdf-binary (~> 0.12) - decidim-generators (0.26.7) - decidim-core (= 0.26.7) - decidim-meetings (0.26.7) - decidim-core (= 0.26.7) - decidim-forms (= 0.26.7) + decidim-generators (0.27.5) + decidim-core (= 0.27.5) + decidim-meetings (0.27.5) + decidim-core (= 0.27.5) + decidim-forms (= 0.27.5) icalendar (~> 2.5) - decidim-pages (0.26.7) - decidim-core (= 0.26.7) - decidim-participatory_processes (0.26.7) - decidim-core (= 0.26.7) - decidim-proposals (0.26.7) - decidim-comments (= 0.26.7) - decidim-core (= 0.26.7) - doc2text (~> 0.4.4) + decidim-pages (0.27.5) + decidim-core (= 0.27.5) + decidim-participatory_processes (0.27.5) + decidim-core (= 0.27.5) + decidim-proposals (0.27.5) + decidim-comments (= 0.27.5) + decidim-core (= 0.27.5) + doc2text (~> 0.4.5) redcarpet (~> 3.5, >= 3.5.1) - decidim-sortitions (0.26.7) - decidim-admin (= 0.26.7) - decidim-comments (= 0.26.7) - decidim-core (= 0.26.7) - decidim-proposals (= 0.26.7) - decidim-spam_detection (3.1.0) - decidim-core (~> 0.26.0) - decidim-surveys (0.26.7) - decidim-core (= 0.26.7) - decidim-forms (= 0.26.7) - decidim-templates (= 0.26.7) - decidim-system (0.26.7) + decidim-sortitions (0.27.5) + decidim-admin (= 0.27.5) + decidim-comments (= 0.27.5) + decidim-core (= 0.27.5) + decidim-proposals (= 0.27.5) + decidim-spam_detection (4.0.0) + decidim-core (~> 0.27.0) + decidim-surveys (0.27.5) + decidim-core (= 0.27.5) + decidim-forms (= 0.27.5) + decidim-templates (= 0.27.5) + decidim-system (0.27.5) active_link_to (~> 1.0) - decidim-core (= 0.26.7) + decidim-core (= 0.27.5) devise (~> 4.7) devise-i18n (~> 1.2) - devise_invitable (~> 2.0) - decidim-templates (0.26.7) - decidim-core (= 0.26.7) - decidim-forms (= 0.26.7) - decidim-verifications (0.26.7) - decidim-core (= 0.26.7) + devise_invitable (~> 2.0, >= 2.0.9) + decidim-templates (0.27.5) + decidim-core (= 0.27.5) + decidim-forms (= 0.27.5) + decidim-verifications (0.27.5) + decidim-core (= 0.27.5) declarative-builder (0.1.0) declarative-option (< 0.2.0) declarative-option (0.1.0) descendants_tracker (0.0.4) thread_safe (~> 0.3, >= 0.3.1) - devise (4.8.1) + devise (4.9.3) bcrypt (~> 3.0) orm_adapter (~> 0.1) railties (>= 4.1.0) responders warden (~> 1.2.3) - devise-i18n (1.10.2) - devise (>= 4.8.0) - devise_invitable (2.0.6) + devise-i18n (1.12.0) + devise (>= 4.9.0) + devise_invitable (2.0.9) actionmailer (>= 5.0) devise (>= 4.6) - diff-lcs (1.5.0) + diff-lcs (1.5.1) diffy (3.4.2) - doc2text (0.4.5) - nokogiri (>= 1.13.2, < 1.14.0) + doc2text (0.4.7) + nokogiri (>= 1.13.2, < 1.17.0) rubyzip (~> 2.3.0) docile (1.4.0) - doorkeeper (5.6.0) + doorkeeper (5.6.9) railties (>= 5) doorkeeper-i18n (4.0.1) dotenv (2.8.1) @@ -392,7 +400,6 @@ GEM dotenv (= 2.8.1) railties (>= 3.2) dumb_delegator (1.0.0) - equalizer (0.0.11) erb_lint (0.0.37) activesupport better_html (~> 1.0.7) @@ -403,11 +410,14 @@ GEM smart_properties erbse (0.1.4) temple - erubi (1.11.0) + erubi (1.12.0) + escape_utils (1.3.0) et-orbi (1.2.7) tzinfo - excon (0.92.5) - execjs (2.8.1) + excon (0.110.0) + execjs (2.9.1) + extended-markdown-filter (0.7.0) + html-pipeline (~> 2.9) factory_bot (4.11.1) activesupport (>= 3.0.0) factory_bot_rails (4.11.1) @@ -415,19 +425,19 @@ GEM railties (>= 3.0.0) faker (2.23.0) i18n (>= 1.8.11, < 2) - faraday (2.5.2) - faraday-net_http (>= 2.0, < 3.1) - ruby2_keywords (>= 0.0.4) - faraday-net_http (3.0.0) - ffi (1.15.5) - file_validators (2.3.0) + faraday (2.9.0) + faraday-net_http (>= 2.0, < 3.2) + faraday-net_http (3.1.0) + net-http + ffi (1.16.3) + file_validators (3.0.0) activemodel (>= 3.2) mime-types (>= 1.0) - fog-aws (3.15.0) + fog-aws (3.21.0) fog-core (~> 2.1) fog-json (~> 1.1) fog-xml (~> 0.1) - fog-core (2.3.0) + fog-core (2.4.0) builder excon (~> 0.71) formatador (>= 0.2, < 2.0) @@ -441,21 +451,35 @@ GEM fog-core nokogiri (>= 1.5.11, < 2.0.0) formatador (1.1.0) - fugit (1.8.1) + fugit (1.9.0) et-orbi (~> 1, >= 1.2.7) raabro (~> 1.4) - geocoder (1.7.5) - globalid (1.0.0) - activesupport (>= 5.0) + gemoji (3.0.1) + geocoder (1.8.2) + globalid (1.2.1) + activesupport (>= 6.1) graphql (1.12.24) - hashdiff (1.0.1) + graphql-docs (2.1.0) + commonmarker (~> 0.16) + escape_utils (~> 1.2) + extended-markdown-filter (~> 0.4) + gemoji (~> 3.0) + graphql (~> 1.12) + html-pipeline (~> 2.9) + sass (~> 3.4) + gserver (0.0.1) + hashdiff (1.1.0) hashie (5.0.0) health_check (3.1.0) railties (>= 5.0) - highline (2.0.3) + highline (3.0.1) + hkdf (0.3.0) + html-pipeline (2.14.3) + activesupport (>= 2) + nokogiri (>= 1.4) html_tokenizer (0.0.7) htmlentities (4.3.4) - i18n (1.12.0) + i18n (1.14.4) concurrent-ruby (~> 1.0) i18n-tasks (0.9.37) activesupport (>= 4.0.2) @@ -467,7 +491,7 @@ GEM rails-i18n rainbow (>= 2.2.2, < 4.0) terminal-table (>= 1.5.1) - icalendar (2.8.0) + icalendar (2.10.1) ice_cube (~> 0.16) ice_cube (0.16.4) ice_nine (0.11.2) @@ -477,8 +501,9 @@ GEM invisible_captcha (0.13.0) rails (>= 3.2.0) jmespath (1.6.2) - json (2.6.2) - jwt (2.5.0) + json (2.7.1) + jwt (2.8.1) + base64 kaminari (1.2.2) activesupport (>= 4.1.0) kaminari-actionview (= 1.2.2) @@ -495,55 +520,67 @@ GEM rexml kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) - launchy (2.5.0) - addressable (~> 2.7) - letter_opener (1.8.1) + launchy (2.5.2) + addressable (~> 2.8) + letter_opener (1.9.0) launchy (>= 2.2, < 3) letter_opener_web (1.4.1) actionmailer (>= 3.2) letter_opener (~> 1.0) railties (>= 3.2) - listen (3.7.1) + listen (3.8.0) rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) - lograge (0.12.0) + lograge (0.14.0) actionpack (>= 4) activesupport (>= 4) railties (>= 4) request_store (~> 1.0) - loofah (2.3.1) + loofah (2.19.1) crass (~> 1.0.2) nokogiri (>= 1.5.9) - mail (2.7.1) + mail (2.8.1) mini_mime (>= 0.1.1) - marcel (1.0.2) + net-imap + net-pop + net-smtp + marcel (1.0.4) matrix (0.4.2) - mdl (0.11.0) + mdl (0.13.0) kramdown (~> 2.3) kramdown-parser-gfm (~> 1.1) mixlib-cli (~> 2.1, >= 2.1.1) mixlib-config (>= 2.2.1, < 4) mixlib-shellout method_source (1.0.0) - mime-types (3.4.1) + mime-types (3.5.2) mime-types-data (~> 3.2015) - mime-types-data (3.2022.0105) - mini_magick (4.11.0) - mini_mime (1.1.2) - mini_portile2 (2.8.0) - minitest (5.16.3) + mime-types-data (3.2024.0305) + mini_magick (4.12.0) + mini_mime (1.1.5) + minitest (5.22.3) mixlib-cli (2.1.8) mixlib-config (3.0.27) tomlrb mixlib-shellout (3.2.7) chef-utils - msgpack (1.5.6) + msgpack (1.7.2) multi_json (1.15.0) multi_xml (0.6.0) mustache (1.1.1) - nio4r (2.5.8) - nokogiri (1.13.4) - mini_portile2 (~> 2.8.0) + net-http (0.4.1) + uri + net-imap (0.4.10) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.5.0) + net-protocol + nio4r (2.7.1) + nokogiri (1.13.4-arm64-darwin) racc (~> 1.4) nokogiri (1.13.4-x86_64-darwin) racc (~> 1.4) @@ -562,17 +599,17 @@ GEM rack (>= 1.2, < 4) snaky_hash (~> 2.0) version_gem (~> 1.1) - omniauth (2.1.0) + omniauth (2.1.2) hashie (>= 3.4.6) rack (>= 2.2.3) rack-protection omniauth-facebook (5.0.0) omniauth-oauth2 (~> 1.2) - omniauth-google-oauth2 (1.1.1) + omniauth-google-oauth2 (1.1.2) jwt (>= 2.0) - oauth2 (~> 2.0.6) + oauth2 (~> 2.0) omniauth (~> 2.0) - omniauth-oauth2 (~> 1.8.0) + omniauth-oauth2 (~> 1.8) omniauth-oauth (1.2.0) oauth omniauth (>= 1.0, < 3) @@ -592,73 +629,77 @@ GEM paper_trail (12.3.0) activerecord (>= 5.2) request_store (~> 1.1) - parallel (1.22.1) - parallel_tests (3.7.3) + parallel (1.24.0) + parallel_tests (3.13.0) parallel - parser (3.1.2.1) + parser (3.3.0.5) ast (~> 2.4.1) + racc pg (1.1.4) pg_search (2.3.6) activerecord (>= 5.2) activesupport (>= 5.2) - premailer (1.17.0) + premailer (1.23.0) addressable css_parser (>= 1.12.0) htmlentities (>= 4.0.0) - premailer-rails (1.11.1) + premailer-rails (1.12.0) actionmailer (>= 3) + net-smtp premailer (~> 1.7, >= 1.7.9) - public_suffix (5.0.0) - puma (5.6.5) + public_suffix (5.0.5) + puma (5.6.8) nio4r (~> 2.0) raabro (1.4.0) - racc (1.6.0) - rack (2.2.4) - rack-attack (6.6.1) - rack (>= 1.0, < 3) + racc (1.7.3) + rack (2.2.9) + rack-attack (6.7.0) + rack (>= 1.0, < 4) rack-cors (1.1.1) rack (>= 2.0.0) - rack-protection (2.2.2) + rack-protection (3.2.0) + base64 (>= 0.1.0) + rack (~> 2.2, >= 2.2.4) + rack-proxy (0.7.7) rack - rack-proxy (0.7.4) - rack - rack-test (2.0.2) + rack-test (2.1.0) rack (>= 1.3) - rails (6.0.6) - actioncable (= 6.0.6) - actionmailbox (= 6.0.6) - actionmailer (= 6.0.6) - actionpack (= 6.0.6) - actiontext (= 6.0.6) - actionview (= 6.0.6) - activejob (= 6.0.6) - activemodel (= 6.0.6) - activerecord (= 6.0.6) - activestorage (= 6.0.6) - activesupport (= 6.0.6) - bundler (>= 1.3.0) - railties (= 6.0.6) + rails (6.1.7.7) + actioncable (= 6.1.7.7) + actionmailbox (= 6.1.7.7) + actionmailer (= 6.1.7.7) + actionpack (= 6.1.7.7) + actiontext (= 6.1.7.7) + actionview (= 6.1.7.7) + activejob (= 6.1.7.7) + activemodel (= 6.1.7.7) + activerecord (= 6.1.7.7) + activestorage (= 6.1.7.7) + activesupport (= 6.1.7.7) + bundler (>= 1.15.0) + railties (= 6.1.7.7) sprockets-rails (>= 2.0.0) rails-controller-testing (1.0.5) actionpack (>= 5.0.1.rc1) actionview (>= 5.0.1.rc1) activesupport (>= 5.0.1.rc1) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.4.3) - loofah (~> 2.3) + rails-html-sanitizer (1.5.0) + loofah (~> 2.19, >= 2.19.1) rails-i18n (6.0.0) i18n (>= 0.7, < 2) railties (>= 6.0.0, < 7) - railties (6.0.6) - actionpack (= 6.0.6) - activesupport (= 6.0.6) + railties (6.1.7.7) + actionpack (= 6.1.7.7) + activesupport (= 6.1.7.7) method_source - rake (>= 0.8.7) - thor (>= 0.20.3, < 2.0) + rake (>= 12.2) + thor (~> 1.0) rainbow (3.1.1) - rake (13.0.6) + rake (13.2.1) ransack (2.4.2) activerecord (>= 5.2.4) activesupport (>= 5.2.4) @@ -666,41 +707,37 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.10.1) ffi (~> 1.0) - rectify (0.13.0) - activemodel (>= 4.1.0) - activerecord (>= 4.1.0) - activesupport (>= 4.1.0) - virtus (~> 1.0.5) - wisper (>= 1.6.1) - redcarpet (3.5.1) - redis (4.8.0) - redlock (1.3.0) - redis (>= 3.0.0, < 6.0) - regexp_parser (2.5.0) + redcarpet (3.6.0) + redis (4.8.1) + redis-client (0.20.0) + connection_pool + redlock (2.0.6) + redis-client (>= 0.14.1, < 1.0.0) + regexp_parser (2.9.0) request_store (1.5.1) rack (>= 1.4) - responders (3.0.1) - actionpack (>= 5.0) - railties (>= 5.0) - rexml (3.2.5) - rspec (3.11.0) - rspec-core (~> 3.11.0) - rspec-expectations (~> 3.11.0) - rspec-mocks (~> 3.11.0) - rspec-cells (0.3.7) + responders (3.1.1) + actionpack (>= 5.2) + railties (>= 5.2) + rexml (3.2.6) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-cells (0.3.9) cells (>= 4.0.0, < 6.0.0) - rspec-rails (< 6.0) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.1) + rspec-rails (>= 3.0.0, < 6.2.0) + rspec-core (3.13.0) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) + rspec-support (~> 3.13.0) rspec-html-matchers (0.9.4) nokogiri (~> 1) rspec (>= 3.0.0.a, < 4) - rspec-mocks (3.11.1) + rspec-mocks (3.13.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) + rspec-support (~> 3.13.0) rspec-rails (4.1.2) actionpack (>= 4.2) activesupport (>= 4.2) @@ -711,123 +748,128 @@ GEM rspec-support (~> 3.10) rspec-retry (0.6.2) rspec-core (> 3.3) - rspec-support (3.11.1) + rspec-support (3.13.0) rspec_junit_formatter (0.3.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (0.92.0) + rubocop (1.28.2) parallel (~> 1.10) - parser (>= 2.7.1.5) + parser (>= 3.1.0.0) rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.7) + regexp_parser (>= 1.8, < 3.0) rexml - rubocop-ast (>= 0.5.0) + rubocop-ast (>= 1.17.0, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 2.0) - rubocop-ast (1.21.0) - parser (>= 3.1.1.0) + unicode-display_width (>= 1.4.0, < 3.0) + rubocop-ast (1.30.0) + parser (>= 3.2.1.0) rubocop-faker (1.1.0) faker (>= 2.12.0) rubocop (>= 0.82.0) - rubocop-rails (2.9.1) + rubocop-rails (2.15.2) activesupport (>= 4.2.0) rack (>= 1.1) - rubocop (>= 0.90.0, < 2.0) - rubocop-rspec (1.43.2) - rubocop (~> 0.87) - ruby-progressbar (1.11.0) + rubocop (>= 1.7.0, < 2.0) + rubocop-rspec (2.11.1) + rubocop (~> 1.19) + ruby-progressbar (1.13.0) ruby-saml (1.14.0) nokogiri (>= 1.10.5) rexml - ruby-vips (2.1.4) + ruby-vips (2.2.1) ffi (~> 1.12) - ruby2_keywords (0.0.5) - rubyXL (3.4.25) + rubyXL (3.4.26) nokogiri (>= 1.10.8) rubyzip (>= 1.3.0) ruby_http_client (3.5.5) rubyzip (2.3.2) rufus-scheduler (3.9.1) fugit (~> 1.1, >= 1.1.6) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) sassc (2.4.0) ffi (~> 1.9) - searchlight (4.1.0) - selenium-webdriver (3.142.7) - childprocess (>= 0.5, < 4.0) + selenium-webdriver (4.1.0) + childprocess (>= 0.5, < 5.0) + rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2) semantic_range (3.0.0) - sendgrid-ruby (6.6.2) + sendgrid-ruby (6.7.0) ruby_http_client (~> 3.4) - sentry-rails (5.4.2) + sentry-rails (5.16.1) railties (>= 5.0) - sentry-ruby (~> 5.4.2) - sentry-ruby (5.4.2) + sentry-ruby (~> 5.16.1) + sentry-ruby (5.16.1) concurrent-ruby (~> 1.0, >= 1.0.2) - sentry-sidekiq (5.4.2) - sentry-ruby (~> 5.4.2) + sentry-sidekiq (5.16.1) + sentry-ruby (~> 5.16.1) sidekiq (>= 3.0) seven_zip_ruby (1.3.0) - sidekiq (6.5.7) - connection_pool (>= 2.2.5) + sidekiq (6.5.12) + connection_pool (>= 2.2.5, < 3) rack (~> 2.0) redis (>= 4.5.0, < 5) sidekiq-scheduler (5.0.3) rufus-scheduler (~> 3.2) sidekiq (>= 6, < 8) tilt (>= 1.4.0) - sidekiq_alive (2.2.3) - rack (< 3) + sidekiq_alive (2.4.0) + gserver (~> 0.0.1) sidekiq (>= 5, < 8) - webrick (>= 1, < 2) - simplecov (0.19.1) + simplecov (0.21.2) docile (~> 1.1) simplecov-html (~> 0.11) - simplecov-cobertura (1.3.1) - simplecov (~> 0.8) + simplecov_json_formatter (~> 0.1) + simplecov-cobertura (2.1.0) + rexml + simplecov (~> 0.19) simplecov-html (0.12.3) + simplecov_json_formatter (0.1.4) smart_properties (1.17.0) - snaky_hash (2.0.0) + snaky_hash (2.0.1) hashie - version_gem (~> 1.1) + version_gem (~> 1.1, >= 1.1.1) social-share-button (1.2.4) coffee-rails spring (2.1.1) spring-watcher-listen (2.0.1) listen (>= 2.7, < 4.0) spring (>= 1.2, < 3.0) - sprockets (3.7.2) + sprockets (4.2.1) concurrent-ruby (~> 1.0) - rack (> 1, < 3) + rack (>= 2.2.4, < 4) sprockets-rails (3.4.2) actionpack (>= 5.2) activesupport (>= 5.2) sprockets (>= 3.0.0) - ssrf_filter (1.1.1) - sys-filesystem (1.4.3) + ssrf_filter (1.1.2) + sys-filesystem (1.4.4) ffi (~> 1.1) - system_test_html_screenshots (0.2.0) - actionpack (>= 5.2, < 6.1.a) - temple (0.8.2) + temple (0.10.3) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) - thor (1.2.1) + thor (1.3.1) thread_safe (0.3.6) - tilt (2.0.11) + tilt (2.3.0) + timeout (0.4.1) tomlrb (2.0.3) - tzinfo (1.2.10) - thread_safe (~> 0.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) uber (0.1.0) uglifier (4.2.0) execjs (>= 0.3.0, < 3) - unicode-display_width (1.8.0) + unicode-display_width (2.5.0) + uri (0.13.0) valid_email2 (2.3.1) activemodel (>= 3.2) mail (~> 2.5) - version_gem (1.1.1) - virtus (1.0.5) + version_gem (1.1.4) + virtus (2.0.0) axiom-types (~> 0.1) coercible (~> 1.0) descendants_tracker (~> 0.0, >= 0.0.3) - equalizer (~> 0.0, >= 0.0.9) w3c_rspec_validators (0.3.0) rails rspec @@ -843,7 +885,7 @@ GEM activemodel (>= 6.0.0) bindex (>= 0.4.0) railties (>= 6.0.0) - webmock (3.18.1) + webmock (3.22.0) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) @@ -852,22 +894,26 @@ GEM rack-proxy (>= 0.6.1) railties (>= 5.2) semantic_range (>= 2.3.0) - webrick (1.8.1) - websocket-driver (0.7.5) + webpush (1.1.0) + hkdf (~> 0.2) + jwt (~> 2.0) + websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) wicked_pdf (2.6.3) activesupport wisper (2.0.1) wisper-rspec (1.1.0) - wkhtmltopdf-binary (0.12.6.5) + wkhtmltopdf-binary (0.12.6.6) xpath (3.2.0) nokogiri (~> 1.8) - zeitwerk (2.6.0) + zeitwerk (2.6.13) PLATFORMS - ruby + arm64-darwin-22 + x86_64-darwin-20 x86_64-darwin-21 + x86_64-darwin-22 x86_64-linux DEPENDENCIES @@ -878,10 +924,10 @@ DEPENDENCIES byebug (~> 11.0) climate_control (~> 1.2) dalli - decidim (~> 0.26.0) + decidim (~> 0.27.0) decidim-cache_cleaner - decidim-decidim_awesome - decidim-dev (~> 0.26.0) + decidim-decidim_awesome (~> 0.9.1) + decidim-dev (~> 0.27.0) decidim-spam_detection decidim-term_customizer! dotenv-rails @@ -899,7 +945,6 @@ DEPENDENCIES puma (>= 5.5.1) rack-attack (~> 6.6) rubocop-faker - ruby-progressbar (~> 1.11) sendgrid-ruby sentry-rails sentry-ruby @@ -909,13 +954,12 @@ DEPENDENCIES sidekiq_alive (~> 2.2) spring (~> 2.0) spring-watcher-listen (~> 2.0) - sprockets (~> 3.7) sys-filesystem uglifier (~> 4.1) web-console (= 4.0.4) RUBY VERSION - ruby 2.7.5p203 + ruby 3.0.6p216 BUNDLED WITH - 2.3.13 + 2.4.9 diff --git a/app/controllers/decidim/devise/custom_omniauth_registrations_controller.rb b/app/controllers/decidim/devise/custom_omniauth_registrations_controller.rb index d72cee12..3ab123ff 100644 --- a/app/controllers/decidim/devise/custom_omniauth_registrations_controller.rb +++ b/app/controllers/decidim/devise/custom_omniauth_registrations_controller.rb @@ -9,6 +9,7 @@ class CustomOmniauthRegistrationsController < ::Decidim::Devise::OmniauthRegistr # rubocop:enable Rails/LexicallyScopedActionFilter include Decidim::AuthentificationHelper + include Decidim::DeviseAuthenticationMethods def create form_params = user_params_from_oauth_hash || params[:user] @@ -47,16 +48,6 @@ def create end end end - - def after_sign_in_path_for(user) - if user.present? && user.blocked? - check_user_block_status(user) - elsif !pending_redirect?(user) && can_access_admin?(user) - "/admin" - else - super - end - end end end end diff --git a/app/services/decidim/repair_nickname_service.rb b/app/services/decidim/repair_nickname_service.rb index 3d447fd8..23a40490 100644 --- a/app/services/decidim/repair_nickname_service.rb +++ b/app/services/decidim/repair_nickname_service.rb @@ -52,10 +52,10 @@ def valid_nickname_for(user) # Returns the corresponding char # Else returns nil def ascii_to_valid_char(id) - letters = ("A".."Z").to_a.join("").codepoints - letters += ("a".."z").to_a.join("").codepoints - digits = ("0".."9").to_a.join("").codepoints - special_chars = %w(- _).join("").codepoints + letters = ("A".."Z").to_a.join.codepoints + letters += ("a".."z").to_a.join.codepoints + digits = ("0".."9").to_a.join.codepoints + special_chars = %w(- _).join.codepoints valid_ascii_code = letters + digits + special_chars diff --git a/app/views/decidim/account/show.html.erb b/app/views/decidim/account/show.html.erb new file mode 100644 index 00000000..7694e1e4 --- /dev/null +++ b/app/views/decidim/account/show.html.erb @@ -0,0 +1,69 @@ +<%= alert_box("", "account-notification hide", true) %> +<% add_decidim_page_title(t("profile", scope: "layouts.decidim.user_menu")) %> +<% content_for(:subtitle) { t("profile", scope: "layouts.decidim.user_menu") } %> + +
+ <%= decidim_form_for(@account, url: account_path, method: :put, html: { autocomplete: "on" }) do |f| %> +
+ <%= f.upload :avatar %> +
+ +
+ <% if current_user.unconfirmed_email.present? %> +
+

<%= t("decidim.account.email_change.title") %>

+

<%= t("decidim.account.email_change.body1", unconfirmed_email: current_user.unconfirmed_email) %>

+

+ <%== t( + "decidim.account.email_change.body2", + resend_link: link_to(t("decidim.account.email_change.send_again"), resend_confirmation_instructions_account_path, role: :button, method: :post, remote: true), + cancel_link: link_to(t("decidim.account.email_change.cancel"), cancel_email_change_account_path, role: :button, method: :post, remote: true)) %> +

+
+ <% end %> + + <%= form_required_explanation %> + + <%= f.text_field :name, autocomplete: "name" %> + <%= f.text_field :nickname, autocomplete: "nickname" %> + <%= f.email_field :email, disabled: current_user.unconfirmed_email.present?, autocomplete: "email" %> + <%= f.url_field :personal_url, autocomplete: "url" %> + <%= f.text_area :about, rows: 5 %> + + <% if @account.organization.available_locales.size > 1 %> + <%= f.collection_select( + :locale, + @account.organization.available_locales, + :to_s, + ->(locale) {locale_name(locale) } + ) %> + <% else %> + <%= f.collection_select( + :locale, + @account.organization.available_locales, + :to_s, + ->(locale) {locale_name(locale) }, + {}, + { disabled: true } + ) %> + <% end %> + +

<%= t(".available_locales_helper") %>

+ + <% if @account.errors[:password].any? || @account.errors[:password_confirmation].any? %> + <%= render partial: "password_fields", locals: { form: f } %> + <% else %> + <% if current_organization.sign_in_enabled? %> +

+ +

+
+ <%= render partial: "password_fields", locals: { form: f } %> +
+ <% end %> + <% end %> + + <%= f.submit t(".update_account") %> +
+ <% end %> +
\ No newline at end of file diff --git a/app/views/decidim/devise/registrations/new.html.erb b/app/views/decidim/devise/registrations/new.html.erb index a4bb86b6..c521c707 100644 --- a/app/views/decidim/devise/registrations/new.html.erb +++ b/app/views/decidim/devise/registrations/new.html.erb @@ -30,33 +30,33 @@
- <%= f.text_field :name, help_text: t(".username_help") %> + <%= f.text_field :name, help_text: t(".username_help"), autocomplete: "name" %>
- <%= f.text_field :nickname, help_text: t(".nickname_help", organization: current_organization.name), prefix: { value: "@", small: 1, large: 1 } %> + <%= f.text_field :nickname, help_text: t(".nickname_help", organization: current_organization.name), prefix: { value: "@", small: 1, large: 1 }, autocomplete: "nickname" %>
- <%= f.email_field :email %> + <%= f.email_field :email, autocomplete: "email" %>
- <%= f.password_field :password, help_text: t(".password_help", minimun_characters: ::PasswordValidator::MINIMUM_LENGTH), autocomplete: "off" %> + <%= f.password_field :password, password_field_options_for(:user) %>
- <%= f.password_field :password_confirmation %> + <%= f.password_field :password_confirmation, password_field_options_for(:user).except(:help_text) %>
-

<%= t(".tos_title") %>

+

<%= t(".tos_title") %>

<%= strip_tags(translated_attribute(terms_and_conditions_page.content)) %> @@ -70,7 +70,7 @@

-

<%= t(".newsletter_title") %>

+

<%= t(".newsletter_title") %>

<%= f.check_box :newsletter, label: t(".newsletter"), checked: @form.newsletter %>
diff --git a/app/views/decidim/devise/sessions/new.html.erb b/app/views/decidim/devise/sessions/new.html.erb index 35188938..6525e388 100644 --- a/app/views/decidim/devise/sessions/new.html.erb +++ b/app/views/decidim/devise/sessions/new.html.erb @@ -30,10 +30,10 @@ <%= decidim_form_for(resource, namespace: "session", as: resource_name, url: session_path(resource_name), html: { class: "register-form new_user" }) do |f| %>
- <%= f.email_field :email %> + <%= f.email_field :email, autocomplete: "email" %>
- <%= f.password_field :password, autocomplete: "off" %> + <%= f.password_field :password, autocomplete: "current-password" %>
<% if devise_mapping.rememberable? %> diff --git a/app/views/decidim/shared/_login_modal.html.erb b/app/views/decidim/shared/_login_modal.html.erb index eed79188..c267fbd4 100644 --- a/app/views/decidim/shared/_login_modal.html.erb +++ b/app/views/decidim/shared/_login_modal.html.erb @@ -1,6 +1,6 @@ -
+