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

Can't confirm user: undefined method `encrypted_password' for nil:NilClass #2116

Closed
domk opened this issue Nov 1, 2017 · 4 comments
Closed

Comments

@domk
Copy link

domk commented Nov 1, 2017

Hi there,

I have pulled sources from repo and started the consul server following instructions on the installation page. However, when I try to create a user using email address and I copy/paste the URL given in the dumped email message in the console to confirm the email, I've got the following error:

undefined method `encrypted_password' for nil:NilClass

Is there any bug here or did I miss something in the setup?

@decabeza
Copy link
Collaborator

decabeza commented Nov 1, 2017

Hi @domk I don't know what happened, we have to investigate... Meanwhile when you sign up you can look on tmp/letter_opener/HASH/rich.html and use the url provided in this HTML file (different of url given on console and this yes is working)

Thanks for the report! 😉

@domk
Copy link
Author

domk commented Nov 1, 2017

Great! Thanks @decabeza! It does work.

@voodoorai2000
Copy link
Member

Hey @domk!

Yes, that's related to the ASCII encoding used for emails. I don't think it can be fixed.
https://stackoverflow.com/questions/4016067/whats-a-3d-doing-in-this-html

In the development environment, you should see the email that @decabeza commented, popping up in your browser thanks to the letter_opener gem https://github.com/ryanb/letter_opener

In the staging and production environments, you should receive the email in your email client.

If you don't have the email configuration setup and want to look at the logs to extract the confirmation link, you can check out the users's confirmation token in the database and adapt the url. There are probably these extra characters: "3D in the confirmation token generated in the logs.

@javierm
Copy link
Member

javierm commented Apr 25, 2019

Closed via #3432.

@javierm javierm closed this as completed Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants