mirror of
https://github.com/laurent22/joplin.git
synced 2026-06-18 20:16:34 +02:00
Server: Downgrade password reset log for non-existent users to info (#15139)
This commit is contained in:
@@ -31,7 +31,11 @@ const subRoutes: Record<string, RouteHandler> = {
|
||||
try {
|
||||
await ctx.joplin.models.user().sendResetPasswordEmail(fields.email || '');
|
||||
} catch (error) {
|
||||
logger.warn(`Could not send reset email for ${fields.email}`, error);
|
||||
if (error instanceof ErrorNotFound) {
|
||||
logger.info(`Could not send reset email for ${fields.email}`, error);
|
||||
} else {
|
||||
logger.warn(`Could not send reset email for ${fields.email}`, error);
|
||||
}
|
||||
}
|
||||
|
||||
confirmationMessage = 'If we have an account that matches your email, you should receive an email with instructions on how to reset your password shortly.';
|
||||
|
||||
Reference in New Issue
Block a user