Fixes email template and redirection to copay

This commit is contained in:
Esteban Ordano 2014-10-29 23:53:50 -03:00
parent 18405a3a92
commit c00dcc0e8b
2 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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();
}
});
}