From c5f3ff39e5351ac911418c432dac235c5aefec9e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 28 Sep 2022 16:00:32 +0200 Subject: Ask password reset/email verif error handling With a user that uses a plugin authentication --- server/controllers/api/users/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers') diff --git a/server/controllers/api/users/index.ts b/server/controllers/api/users/index.ts index 0b27d5277..07b9ae395 100644 --- a/server/controllers/api/users/index.ts +++ b/server/controllers/api/users/index.ts @@ -343,7 +343,7 @@ async function askResetUserPassword (req: express.Request, res: express.Response const verificationString = await Redis.Instance.setResetPasswordVerificationString(user.id) const url = WEBSERVER.URL + '/reset-password?userId=' + user.id + '&verificationString=' + verificationString - await Emailer.Instance.addPasswordResetEmailJob(user.username, user.email, url) + Emailer.Instance.addPasswordResetEmailJob(user.username, user.email, url) return res.status(HttpStatusCode.NO_CONTENT_204).end() } -- cgit v1.2.3