فهرست منبع

log password reset token if no smtp to allow reset password

Milo Schwartz 6 ماه پیش
والد
کامیت
a57f0ab360
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      server/routers/auth/requestPasswordReset.ts

+ 4 - 0
server/routers/auth/requestPasswordReset.ts

@@ -84,6 +84,10 @@ export async function requestPasswordReset(
 
         const url = `${config.getRawConfig().app.dashboard_url}/auth/reset-password?email=${email}&token=${token}`;
 
+        if (!config.getRawConfig().email) {
+            logger.info(`Password reset requested for ${email}. Token: ${token}.`);
+        }
+
         await sendEmail(
             ResetPasswordCode({
                 email,