refs #6427 revert vn-user changes
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-03-26 09:44:50 +01:00
parent fbd2c28a81
commit 928b2f5807
1 changed files with 3 additions and 6 deletions

View File

@ -120,13 +120,10 @@ module.exports = function(Self) {
const options = Object.assign({}, info.options);
for (const param in options)
params[param] = options[param];
if (info.options?.usesPhone)
await Self.app.models.Sms.send({req: {accessToken: info.accessToken}}, +info.options.phone, params.url);
else {
const email = new Email(options.emailTemplate, params);
return email.send();
}
const email = new Email(options.emailTemplate, params);
return email.send();
});
/**