mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 08:46:38 +00:00
log password reset token if no smtp to allow reset password
This commit is contained in:
@@ -84,6 +84,10 @@ export async function requestPasswordReset(
|
|||||||
|
|
||||||
const url = `${config.getRawConfig().app.dashboard_url}/auth/reset-password?email=${email}&token=${token}`;
|
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(
|
await sendEmail(
|
||||||
ResetPasswordCode({
|
ResetPasswordCode({
|
||||||
email,
|
email,
|
||||||
|
|||||||
Reference in New Issue
Block a user