Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

"Confirm my account" link shows as https in development Question

+1
−0

As instructed in the "Create administrator account" section of the QPixel Installation guide I created a second new user through the user interface (clicking "Sign Up") in my local development instance of QPixel. I then visited http://localhost:3000/letter_opener in order to see the registration email containing the "Confirm my account" link. However, clicking on that link gave me an error page in Firefox:

SSL received a record that exceeded the maximum permissible length

It turned out that this was because the link started with https instead of http. Fixing this resulted in the page loading correctly and displaying:

Your email address has been successfully confirmed

Is this evidence of something incorrect about my local development instance? If not, is this something everyone has to do when confirming an email address in development for QPixel? If so, would it be useful to have the code check whether we are in development and display an http link instead of an https link in that case? Would this cause any problems or risks?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

Related: https://collab.codidact.org/posts/292887 (1 comment)
Dev vs prod (4 comments)

1 answer

+2
−0

As of this commit, there is a new environment variable, MAILER_PROTOCOL, that accepts values of http or https. The default is https, but you can set this to http in a development environment to avoid having to manually edit the link from the confirmation message.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »