diff --git a/src/services/AuthService.js b/src/services/AuthService.js index ed33dcc..95c6572 100644 --- a/src/services/AuthService.js +++ b/src/services/AuthService.js @@ -10,9 +10,7 @@ const createToken = (id, privilege) => { const sendToken = user => { const transporter = nodemailer.createTransport({ - host: 'smtp.gmail.com', - port: 587, // Preporučeni port za TLS - secure: false, // Za TLS, postavi na false + service: 'gmail', auth: { user: 'mudroljub@gmail.com', pass: process.env.EMAIL_PASSWORD