From 56f84a824fe3aaa5474d3fdc3d1acbae01690612 Mon Sep 17 00:00:00 2001 From: Saurabh Bhatia Date: Mon, 23 Sep 2024 22:18:02 +1000 Subject: [PATCH] Update confirmation config --- Gemfile.lock | 32 ++++++++++++------------ app/graphql/comix_schema.rb | 2 +- config/initializers/devise_token_auth.rb | 3 ++- 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index ecea014d..03498889 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -96,20 +96,20 @@ GEM public_suffix (>= 2.0.2, < 7.0) ast (2.4.2) aws-eventstream (1.3.0) - aws-partitions (1.976.0) - aws-sdk-core (3.205.0) + aws-partitions (1.977.0) + aws-sdk-core (3.207.0) aws-eventstream (~> 1, >= 1.3.0) aws-partitions (~> 1, >= 1.651.0) aws-sigv4 (~> 1.9) jmespath (~> 1, >= 1.6.1) - aws-sdk-kms (1.91.0) - aws-sdk-core (~> 3, >= 3.205.0) + aws-sdk-kms (1.92.0) + aws-sdk-core (~> 3, >= 3.207.0) aws-sigv4 (~> 1.5) - aws-sdk-s3 (1.162.0) - aws-sdk-core (~> 3, >= 3.205.0) + aws-sdk-s3 (1.164.0) + aws-sdk-core (~> 3, >= 3.207.0) aws-sdk-kms (~> 1) aws-sigv4 (~> 1.5) - aws-sigv4 (1.9.1) + aws-sigv4 (1.10.0) aws-eventstream (~> 1, >= 1.0.2) base64 (0.2.0) bcrypt (3.1.20) @@ -149,9 +149,9 @@ GEM devise (> 3.5.2, < 5) rails (>= 4.2.0, < 7.2) diff-lcs (1.5.1) - dotenv (3.1.2) - dotenv-rails (3.1.2) - dotenv (= 3.1.2) + dotenv (3.1.4) + dotenv-rails (3.1.4) + dotenv (= 3.1.4) railties (>= 6.1) drb (2.2.1) erubi (1.13.0) @@ -187,7 +187,8 @@ GEM rails (>= 4.2, < 7.2) zeitwerk hashie (5.0.0) - honeybadger (5.15.6) + honeybadger (5.16.0) + logger httparty (0.22.0) csv mini_mime (>= 1.0.0) @@ -222,7 +223,7 @@ GEM net-smtp marcel (1.0.4) matrix (0.4.2) - meta-tags (2.22.0) + meta-tags (2.22.1) actionpack (>= 6.0.0, < 8.1) method_source (1.1.0) mini_magick (4.13.2) @@ -278,7 +279,7 @@ GEM psych (5.1.2) stringio public_suffix (6.0.1) - puma (6.4.2) + puma (6.4.3) nio4r (~> 2.0) pundit (2.4.0) activesupport (>= 3.0.0) @@ -383,7 +384,7 @@ GEM rubocop-performance (1.22.1) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) - rubocop-rails (2.26.1) + rubocop-rails (2.26.2) activesupport (>= 4.2.0) rack (>= 1.1) rubocop (>= 1.52.0, < 2.0) @@ -422,9 +423,8 @@ GEM stripe (12.6.0) thor (1.3.2) timeout (0.4.1) - turbo-rails (2.0.7) + turbo-rails (2.0.10) actionpack (>= 6.0.0) - activejob (>= 6.0.0) railties (>= 6.0.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) diff --git a/app/graphql/comix_schema.rb b/app/graphql/comix_schema.rb index 3f16fcf7..cfac7221 100644 --- a/app/graphql/comix_schema.rb +++ b/app/graphql/comix_schema.rb @@ -7,7 +7,7 @@ class ComixSchema < GraphQL::Schema query: Types::QueryType, mutation: Types::MutationType, resource_loaders: [ - GraphqlDevise::ResourceLoader.new(User, only: [:login, :logout, :update_password_with_token, :send_password_reset_with_token, :confirm_registration_with_token]) + GraphqlDevise::ResourceLoader.new(User, only: [:login, :logout, :register, :update_password_with_token, :send_password_reset_with_token, :confirm_registration_with_token]) ] ) diff --git a/config/initializers/devise_token_auth.rb b/config/initializers/devise_token_auth.rb index 7492bf44..9247fb14 100644 --- a/config/initializers/devise_token_auth.rb +++ b/config/initializers/devise_token_auth.rb @@ -59,5 +59,6 @@ # By default DeviseTokenAuth will not send confirmation email, even when including # devise confirmable module. If you want to use devise confirmable module and # send email, set it to true. (This is a setting for compatibility) - # config.send_confirmation_email = true + config.send_confirmation_email = true + config.default_confirm_success_url = "http://localhost:3000" end