Skip to content

Commit fe0c99e

Browse files
joeltejedachrisjsimpson
authored andcommitted
removing http on development environment
1 parent ed46338 commit fe0c99e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

subscribie/blueprints/subscriber/__init__.py

+3-9
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,9 @@ def forgot_password():
141141
)
142142
)
143143
company = Company.query.first()
144-
FLASK_ENV = os.getenv("FLASK_ENV")
145-
if FLASK_ENV == "development":
146-
password_reset_url = (
147-
"http://" + request.host + "/account/password-reset?token=" + token
148-
)
149-
else:
150-
password_reset_url = (
151-
"https://" + request.host + "/account/password-reset?token=" + token
152-
)
144+
password_reset_url = (
145+
"https://" + request.host + "/account/password-reset?token=" + token
146+
)
153147

154148
with open(email_template) as file_:
155149
template = Template(file_.read())

0 commit comments

Comments
 (0)