1

I have a spree app. Along with it comes the Devise authentication. I want to set-up devise :confirmable, and subsequently connect via google and facebook. I tried to set up the file config/initializers/devise.rb for devise :confirmable but changing any config in it doesn't seem to affect my rails app on my local development server. Does this config file provide very limited functionality? Do I need to create a Spree.user_class as specified in this guide?

I am able to send mails and see them using the mailcatcher gem. But no mail is being sent when I am creating a new user.

Please advice.

EDIT

I have created a custom Spree.user_class following the guide and added :confirmable to it but still I am facing the same problem.

Vedant Agarwala
  • 18,146
  • 4
  • 66
  • 89

1 Answers1

0

As per Ryan's suggestion in this mailinglist post, the best way to implement Devise :confirmable is to fork spree_auth_devise and make the changes. Sadly it appears no one has done this as yet, or atleast I couldn't find it on github.

Extending the above for Login via google or facebook, etc, is possible but a better way would be to use spree_social. Keep in mind that spree_social is still in beta.

Vedant Agarwala
  • 18,146
  • 4
  • 66
  • 89