Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset password is not working #138

Closed
numeroteca opened this issue May 1, 2013 · 3 comments
Closed

Reset password is not working #138

numeroteca opened this issue May 1, 2013 · 3 comments

Comments

@numeroteca
Copy link
Member

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
Copy link
Collaborator

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
Copy link
Member Author

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....

@numeroteca numeroteca reopened this May 16, 2013
@rahulbot
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants