Skip to content

Commit

Permalink
Fixed: Bug: Azure: Back-end: Reset password mail is sent with "localh…
Browse files Browse the repository at this point in the history
…ost" address

The sent link should not be hard-coded to localhost but set according to an environment variable (same as in confirmation mail).

#598
  • Loading branch information
OrAbramovich committed Jun 19, 2018
1 parent 004ec87 commit 82b5989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/services/password-reset/password-reset.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const sendResetPasswordMail = (user) => {
if (err) {
throw PasswordResetFailure;
}
const resetPasswordURL = `http://localhost:8080/users/reset-password/${ResetToken}`; //TODO: user CORS
const resetPasswordURL = `${process.env.CORS}/users/reset-password/${ResetToken}`; //TODO: user CORS

const msg = {
to: user.email,
Expand Down

0 comments on commit 82b5989

Please sign in to comment.