Fixes email template and redirection to copay
This commit is contained in:
parent
18405a3a92
commit
c00dcc0e8b
@ -182,9 +182,6 @@ backing up your Copay profile within our servers:</p>
|
|||||||
|
|
||||||
<p> The Copay Team </p>
|
<p> The Copay Team </p>
|
||||||
|
|
||||||
<!-- Gmail/Hotmail image display fix -->
|
|
||||||
<img class="image_fix" src="https://eordano.com/Copay.png" alt="Copay" title="Copay" width="480" height="220" />
|
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -112,6 +112,9 @@ emailPlugin.init = function (config) {
|
|||||||
+ globalConfig.apiPrefix
|
+ globalConfig.apiPrefix
|
||||||
+ '/email/validate'
|
+ '/email/validate'
|
||||||
);
|
);
|
||||||
|
emailPlugin.redirectUrl = (
|
||||||
|
config.redirectUrl || 'https://copay.io/in/app?confirmed=true'
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -454,7 +457,7 @@ emailPlugin.validate = function (request, response) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
return emailPlugin.returnError({code: 500, message: err}, response);
|
return emailPlugin.returnError({code: 500, message: err}, response);
|
||||||
} else {
|
} else {
|
||||||
response.json({success: true}).end();
|
response.redirect(emailPlugin.redirectUrl).end();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user