mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 01:55:10 +02:00
log password reset token if no smtp to allow reset password
This commit is contained in:
parent
0bd8217d9e
commit
a57f0ab360
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue