Replies: 3 comments 3 replies
-
Okay I worked out how to sort the http/https issue (added protocol: https) in my action mailer config. But that made no difference. Still getting invalid key errors. |
Beta Was this translation helpful? Give feedback.
-
There are several reasons why the verify account token could be invalid:
Could you try to find out which scenario is it? When comparing the key in the database, make sure to HMAC it before comparing it to the email token, i.e. call |
Beta Was this translation helpful? Give feedback.
-
Evening! Okay. On my local machine, everything matches up and works. In production:
Key in database is Database key pushed through compute_hmac is Key in email is So for some reason a different key to the db value (once it has been HMAC'd) is being emailed. Trying to work out what is different in my PROD environment. It's hosted on digital ocean's app platform. It's built directly from the same source as my local copy (via GitHub). I believe it's using the secret key base as the HMAC secret? I've compared and those are the same across both (it's stored in and they use the same credentials.yml.enc file) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi it's me again 🤦♂️ (sorry)
I've finished every thing I need to do (all emails working etc yay).. everything works great on my local machine.
In Production however, login works fine, I can create a new user (I'm using Internal Requests to create accounts via my UI), this triggers the verification email that gets sent fine, but when I click the verification link it gives me an invalid key error. The same happens on a password reset, invalid key.
The only thing I'm seeing in logs (enabled debug in prod temporarily) is:
The other thing I've noticed is the URLs in the email are starting with http rather than https? Could that be a problem? Can't figure out where to configure that...
Any help or pointers would be extremely welcome
Beta Was this translation helpful? Give feedback.
All reactions