RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.
http://railsapps.github.io/rails-stripe-membership-saas
1.14k stars 232 forks source link

Forgot Password #70

Closed ghost closed 11 years ago

ghost commented 11 years ago

Using the "Forgot Password" feature I'm getting this response when I click the link in the email that is sent to me:

"http://smtp.gmail.com/users/password/edit?reset_password_token=qd6bUFT7KyVJ791w7V9j"

Then nothing happens. Is this correct?

DanielKehoe commented 11 years ago

I'd guess you don't have email configured correctly for Devise.

Check the file app/config/initializers/devise.rb and the setting for config.mailer_sender.

ghost commented 11 years ago

It is set to our gmail address. Isn't that right?

Mark

On Apr 26, 2013, at 1:16 PM, Daniel Kehoe notifications@github.com wrote:

I'd guess you don't have email configured correctly for Devise.

Check the file app/config/initializers/devise.rb and the setting for config.mailer_sender.

— Reply to this email directly or view it on GitHub.

DanielKehoe commented 11 years ago

How about config.action_mailer.default_url_options in the file _config/environments/production.rb_?

ghost commented 11 years ago

That is set to "smtp.gmail.com", is that correct?

Mark

On Apr 26, 2013, at 4:10 PM, Daniel Kehoe notifications@github.com wrote:

How about config.action_mailer.default_url_options in the file config/environments/production.rb?

— Reply to this email directly or view it on GitHub.

DanielKehoe commented 11 years ago

That's the problem. For _config/environments/development.rb_ it should be :host => 'localhost:3000' and for _config/environments/production.rb_ it should be :host => 'example.com' where you use your site domain name.

This is covered in the article http://railsapps.github.io/rails-send-email.html

ghost commented 11 years ago

Thanks Daniel, that was it! Your great. You respond faster than any support service I've ever used!!

Mark

On Apr 26, 2013, at 4:16 PM, Daniel Kehoe notifications@github.com wrote:

That's the problem. For config/environments/development.rb it should be :host => 'localhost:3000' and for config/environments/production.rb it should be :host => 'example.com' where you use your site domain name.

— Reply to this email directly or view it on GitHub.

DanielKehoe commented 11 years ago

And it's free :-)

Though you can subscribe to the tutorials if you want to support the project.