montera34 / pageonex

PageOneX. Analyzing front pages
http://pageonex.com
GNU Affero General Public License v3.0
54 stars 13 forks source link

Reset password is not working #138

Closed numeroteca closed 11 years ago

numeroteca commented 11 years ago

It is not possible to reset the password both at dev and production (http://dev.pageonex.com/users/password/new).

Error:

Errno::EPIPE in Devise::PasswordsController#create
Broken pipe

The log in production returns:

ActionView::Template::Error (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true):
rahulbot commented 11 years ago

Test via the rails console: User.find(1).send_reset_password_instructions yields the helpful message: sh: 1: /usr/sbin/sendmail: not found Sure enough, sendmail isn't installed :-( I installed it.

This works on dev now - to push and test on production

numeroteca commented 11 years ago

When resetig a password: user receives the email (in my case it went to spam), but the link provided to reset goes to a broken url 404 http://pageonex.com/users/password/edit?reset_password_token=XWSUJ....

rahulbot commented 11 years ago

I had the url wrong in config/environments/production.rb... it was missing the "production."!