Merge pull request #220 from eordano/fix/emailtemplate

Fixes email template and add redirection to copay
This commit is contained in:
Matias Alejo Garcia 2014-10-30 12:37:07 -03:00
commit ee4bed34ea
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();
}
});
}