Merge pull request #220 from eordano/fix/emailtemplate
Fixes email template and add redirection to copay
This commit is contained in:
commit
ee4bed34ea
|
@ -182,9 +182,6 @@ backing up your Copay profile within our servers:</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>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -112,6 +112,9 @@ emailPlugin.init = function (config) {
|
|||
+ globalConfig.apiPrefix
|
||||
+ '/email/validate'
|
||||
);
|
||||
emailPlugin.redirectUrl = (
|
||||
config.redirectUrl || 'https://copay.io/in/app?confirmed=true'
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -454,7 +457,7 @@ emailPlugin.validate = function (request, response) {
|
|||
if (err) {
|
||||
return emailPlugin.returnError({code: 500, message: err}, response);
|
||||
} else {
|
||||
response.json({success: true}).end();
|
||||
response.redirect(emailPlugin.redirectUrl).end();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue