mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 06:48:01 -05:00
Use HTTPS for password reset emails.
This commit is contained in:
@@ -99,7 +99,8 @@ def password_email(user):
|
||||
raise ValueError("Somebody's beating the hell out of the password reset box")
|
||||
|
||||
token = PasswordResetToken._new(user)
|
||||
passlink = 'http://' + g.domain + '/resetpassword/' + token._id
|
||||
base = g.https_endpoint or g.origin
|
||||
passlink = base + '/resetpassword/' + token._id
|
||||
g.log.info("Generated password reset link: " + passlink)
|
||||
_system_email(user.email,
|
||||
PasswordReset(user=user,
|
||||
|
||||
Reference in New Issue
Block a user