Skip to content

Commit a1e1238

Browse files
committed
Fix confirm account link bug
1 parent 4ebd870 commit a1e1238

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

services/accountConfirmation.service.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ function generateCreateAccountTokenLink(httpOrHttps, domain, type, token) {
8888
* @param {string} token the reset token
8989
* @returns {string} the string, of form: [http|https]://{domain}/{model}/create?token={token}
9090
*/
91-
function generateConfirmTokenLink(httpOrHttps, domain, type, token) {
92-
const link = `${httpOrHttps}://${domain}/${type}/confirm?token=${token}`;
91+
function generateConfirmTokenLink(httpOrHttps, domain, token) {
92+
const link = `${httpOrHttps}://${domain}/account/confirm?token=${token}`;
9393
return link;
9494
}
9595
/**
@@ -102,7 +102,7 @@ function generateConfirmTokenLink(httpOrHttps, domain, type, token) {
102102
*/
103103
function generateAccountConfirmationEmail(address, receiverEmail, type, token) {
104104
const httpOrHttps = (address.includes("localhost")) ? "http" : "https";
105-
const tokenLink = generateConfirmTokenLink(httpOrHttps, address, type, token);
105+
const tokenLink = generateConfirmTokenLink(httpOrHttps, address, token);
106106
var emailSubject = "";
107107
if (token === undefined || tokenLink === undefined) {
108108
return undefined;

0 commit comments

Comments
 (0)