Browse Source

fix: exclude sensitive data related to server from SMTP test api

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2342/head
Pranav C 2 years ago
parent
commit
2c1c2d1974
  1. 5
      packages/nocodb/src/lib/plugins/smtp/SMTP.ts

5
packages/nocodb/src/lib/plugins/smtp/SMTP.ts

@ -47,7 +47,10 @@ export default class SMTP implements IEmailAdapter {
} as any); } as any);
return true; return true;
} catch (e) { } catch (e) {
throw e; console.log('SMTP test error :: ', e);
throw new Error(
'SMTP test failed, please check server log for more details.'
);
} }
} }
} }

Loading…
Cancel
Save