sulcgroup / oxdna-web

Environment for running oxdna.org webserver for oxDNA/oxRNA simulation submission and analysis
GNU General Public License v3.0
2 stars 3 forks source link

Make the link sent in auto-Emails adapt to host url #13

Closed RodenLuo closed 4 years ago

RodenLuo commented 4 years ago

Before the change, when a new user signs up, the activation link is hardcoded to ”oxdna.org“. Besides, the greeting is to the Email rather than the user's name.

After the change, the activation link is adaptive to the host URL, i.e., when testing in the localhost, it will be like "http://localhost:9000/verify?id=7&verify=...". And the greeting is to the user's first name.

rjro commented 4 years ago

LGTM. Thanks for the contribution.

rjro commented 4 years ago

For anyone wondering how the request object exists and why this works:

https://flask.palletsprojects.com/en/1.1.x/reqcontext/