refs #6067 fix: emailVerify url
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2023-11-02 10:57:50 +01:00
parent bf84863237
commit 03e2f57306
1 changed files with 4 additions and 1 deletions

View File

@ -220,8 +220,11 @@ module.exports = function(Self) {
class Mailer {
async send(verifyOptions, cb) {
const url = new URL(verifyOptions.verifyHref);
if (process.env.NODE_ENV) url.port = '';
const params = {
url: verifyOptions.verifyHref,
url: url.href,
recipient: verifyOptions.to
};